Commit 05ae6fa31874eda2484da13c5dc4ddee8a47a0a4
1 parent
b9d57f94bb
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
mm/nommu.c
... | ... | @@ -1161,8 +1161,8 @@ |
1161 | 1161 | return ret; |
1162 | 1162 | |
1163 | 1163 | enomem: |
1164 | - printk("Allocation of length %lu from process %d failed\n", | |
1165 | - len, current->pid); | |
1164 | + printk("Allocation of length %lu from process %d (%s) failed\n", | |
1165 | + len, current->pid, current->comm); | |
1166 | 1166 | show_free_areas(); |
1167 | 1167 | return -ENOMEM; |
1168 | 1168 | } |