Skip to content

Commit

Permalink
mm: vmalloc tweak failure printk
Browse files Browse the repository at this point in the history
If we can't service a vmalloc allocation, show size of the allocation that
actually failed.  Useful for debugging.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Glauber Costa authored and Linus Torvalds committed Jan 6, 2009
1 parent 4917e5d commit c1279c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
goto retry;
}
if (printk_ratelimit())
printk(KERN_WARNING "vmap allocation failed: "
"use vmalloc=<size> to increase size.\n");
printk(KERN_WARNING
"vmap allocation for size %lu failed: "
"use vmalloc=<size> to increase size.\n", size);
return ERR_PTR(-EBUSY);
}

Expand Down

0 comments on commit c1279c4

Please sign in to comment.