From: Greg Ungerer Date: Tue, 13 Jan 2009 07:30:22 +0000 (+1000) Subject: uclinux: add process name to allocation error message X-Git-Tag: v2.6.29-rc3~2^2~1 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=05ae6fa31874eda2484da13c5dc4ddee8a47a0a4 uclinux: add process name to allocation error message This patch adds the name of the process to the bad allocation error message on non-MMU systems. Changed suggested by jsujjavanich@syntech-fuelmaster.com Signed-off-by: Greg Ungerer --- diff --git a/mm/nommu.c b/mm/nommu.c index 0c3e7d2114f..2fcf47d449b 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1161,8 +1161,8 @@ error_free: return ret; enomem: - printk("Allocation of length %lu from process %d failed\n", - len, current->pid); + printk("Allocation of length %lu from process %d (%s) failed\n", + len, current->pid, current->comm); show_free_areas(); return -ENOMEM; }