Commit 05ae6fa3 authored by Greg Ungerer's avatar Greg Ungerer
Browse files

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: default avatarGreg Ungerer <gerg@uclinux.org>
parent b9d57f94
...@@ -1161,8 +1161,8 @@ error_free: ...@@ -1161,8 +1161,8 @@ error_free:
return ret; return ret;
enomem: enomem:
printk("Allocation of length %lu from process %d failed\n", printk("Allocation of length %lu from process %d (%s) failed\n",
len, current->pid); len, current->pid, current->comm);
show_free_areas(); show_free_areas();
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment