浏览代码

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>
Greg Ungerer 16 年之前
父节点
当前提交
05ae6fa318
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mm/nommu.c

+ 2 - 2
mm/nommu.c

@@ -1161,8 +1161,8 @@ error_free:
 	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;
 }