Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}