diff options
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r-- | mm/oom_kill.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index e3778f1215c0..824cade07827 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -278,7 +278,8 @@ static void __oom_kill_task(struct task_struct *p, int verbose) | |||
278 | } | 278 | } |
279 | 279 | ||
280 | if (verbose) | 280 | if (verbose) |
281 | printk(KERN_ERR "Killed process %d (%s)\n", p->pid, p->comm); | 281 | printk(KERN_ERR "Killed process %d (%s)\n", |
282 | task_pid_nr(p), p->comm); | ||
282 | 283 | ||
283 | /* | 284 | /* |
284 | * We give our sacrificial lamb high priority and access to | 285 | * We give our sacrificial lamb high priority and access to |
@@ -356,7 +357,7 @@ static int oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order, | |||
356 | } | 357 | } |
357 | 358 | ||
358 | printk(KERN_ERR "%s: kill process %d (%s) score %li or a child\n", | 359 | printk(KERN_ERR "%s: kill process %d (%s) score %li or a child\n", |
359 | message, p->pid, p->comm, points); | 360 | message, task_pid_nr(p), p->comm, points); |
360 | 361 | ||
361 | /* Try to kill a child first */ | 362 | /* Try to kill a child first */ |
362 | list_for_each_entry(c, &p->children, sibling) { | 363 | list_for_each_entry(c, &p->children, sibling) { |