From: Glauber Costa Date: Tue, 6 Jan 2009 22:39:18 +0000 (-0800) Subject: mm: vmalloc tweak failure printk X-Git-Tag: MMI-PSA29.97-13-9~30360 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1279c4ef37a06ba708e6b1f6fd98b45c52770f6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 7465f22fec0c..2644afb9d6ab 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -381,8 +381,9 @@ found: goto retry; } if (printk_ratelimit()) - printk(KERN_WARNING "vmap allocation failed: " - "use vmalloc= to increase size.\n"); + printk(KERN_WARNING + "vmap allocation for size %lu failed: " + "use vmalloc= to increase size.\n", size); return ERR_PTR(-EBUSY); }