lmkd: Fix the message printed during a kill to avoid confusion
Current kills message prints min_score_adj marked as "oom_adj" which is confusing. This change marks it as "min_oom_adj" to be more clear. Change-Id: If52f0fb25fe3208c928c5d6adce77c04b9f15a0e
This commit is contained in:
parent
bb7747bec2
commit
1588bfbc2a
2
lmkd.c
2
lmkd.c
|
|
@ -755,7 +755,7 @@ static int kill_one_process(struct proc* procp, int min_score_adj,
|
||||||
r = kill(pid, SIGKILL);
|
r = kill(pid, SIGKILL);
|
||||||
ALOGI(
|
ALOGI(
|
||||||
"Killing '%s' (%d), uid %d, adj %d\n"
|
"Killing '%s' (%d), uid %d, adj %d\n"
|
||||||
" to free %ldkB because system is under %s memory pressure oom_adj %d\n",
|
" to free %ldkB because system is under %s memory pressure (min_oom_adj=%d)\n",
|
||||||
taskname, pid, uid, procp->oomadj, tasksize * page_k,
|
taskname, pid, uid, procp->oomadj, tasksize * page_k,
|
||||||
level_name[level], min_score_adj);
|
level_name[level], min_score_adj);
|
||||||
pid_remove(pid);
|
pid_remove(pid);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue