aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2009-01-13 02:30:22 -0500
committerGreg Ungerer <gerg@uclinux.org>2009-01-27 01:42:03 -0500
commit05ae6fa31874eda2484da13c5dc4ddee8a47a0a4 (patch)
treec8fb50ace8d0f7f56d37b6157cc217d565b30f2c /mm/nommu.c
parentb9d57f94bb0ed56a5a2b58552a9ff4453013ff0b (diff)
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 <gerg@uclinux.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 0c3e7d2114f6..2fcf47d449b4 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1161,8 +1161,8 @@ error_free:
1161 return ret; 1161 return ret;
1162 1162
1163enomem: 1163enomem:
1164 printk("Allocation of length %lu from process %d failed\n", 1164 printk("Allocation of length %lu from process %d (%s) failed\n",
1165 len, current->pid); 1165 len, current->pid, current->comm);
1166 show_free_areas(); 1166 show_free_areas();
1167 return -ENOMEM; 1167 return -ENOMEM;
1168} 1168}