Skip to content

Commit

Permalink
uclinux: add process name to allocation error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Jan 27, 2009
1 parent b9d57f9 commit 05ae6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05ae6fa

Please sign in to comment.