提交 05ae6fa3 编写于 作者: G Greg Ungerer

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: NGreg Ungerer <gerg@uclinux.org>
上级 b9d57f94
......@@ -1161,8 +1161,8 @@ static int do_mmap_private(struct vm_area_struct *vma,
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册