From: Glauber Costa Date: Tue, 6 Jan 2009 22:39:18 +0000 (-0800) Subject: mm: vmalloc tweak failure printk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1279c4ef37a06ba708e6b1f6fd98b45c52770f6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 7465f22fec0..2644afb9d6a 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); }