]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
uclinux: add process name to allocation error message
authorGreg Ungerer <gerg@uclinux.org>
Tue, 13 Jan 2009 07:30:22 +0000 (17:30 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 27 Jan 2009 06:42:03 +0000 (16:42 +1000)
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 <gerg@uclinux.org>
mm/nommu.c

index 0c3e7d2114f663a07255f6391d6215a1d5c254f7..2fcf47d449b4e203d46bbbf76827aeedbd2e2c22 100644 (file)
@@ -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;
 }