1
0
Fork 0

mm: vmalloc tweak failure printk

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>
hifive-unleashed-5.1
Glauber Costa 2009-01-06 14:39:18 -08:00 committed by Linus Torvalds
parent 4917e5d049
commit c1279c4ef3
1 changed files with 3 additions and 2 deletions

View File

@ -381,8 +381,9 @@ found:
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);
}