mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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>
This commit is contained in:
parent
b9d57f94bb
commit
05ae6fa318
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue