Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753839AbYKGUka (ORCPT ); Fri, 7 Nov 2008 15:40:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752322AbYKGUjf (ORCPT ); Fri, 7 Nov 2008 15:39:35 -0500 Received: from mx2.redhat.com ([66.187.237.31]:52184 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbYKGUje (ORCPT ); Fri, 7 Nov 2008 15:39:34 -0500 From: Glauber Costa To: linux-kernel@vger.kernel.org Cc: kvm@vger.kernel.org, avi@redhat.com, npiggin@suse.de Subject: [PATCH 2/4] show size of failing allocation Date: Fri, 7 Nov 2008 20:35:52 -0200 Message-Id: <1226097354-7523-3-git-send-email-glommer@redhat.com> In-Reply-To: <1226097354-7523-2-git-send-email-glommer@redhat.com> References: <1226097354-7523-1-git-send-email-glommer@redhat.com> <1226097354-7523-2-git-send-email-glommer@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 32 if we can't service a vmalloc allocation, show size of the allocation that actually failed. Useful for debugging. Signed-off-by: Glauber Costa --- mm/vmalloc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 95856d1..7db493d 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -381,8 +381,8 @@ 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 %d failed: " + "use vmalloc= to increase size.\n", size); return ERR_PTR(-EBUSY); } -- 1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/