Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754666Ab0LFWF5 (ORCPT ); Mon, 6 Dec 2010 17:05:57 -0500 Received: from mail.perches.com ([173.55.12.10]:2336 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754439Ab0LFWFY (ORCPT ); Mon, 6 Dec 2010 17:05:24 -0500 From: Joe Perches To: Jiri Kosina Cc: linux-kernel@vger.kernel.org Subject: [PATCH 26/29] mm: Update WARN uses Date: Mon, 6 Dec 2010 14:05:16 -0800 Message-Id: <755232e8ff5d8f5a83ba671ca980df7efd1e27c9.1291670105.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.3.398.g0b0cd.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1622 Lines: 54 Coalesce long formats. Align arguments. Remove KERN_. Signed-off-by: Joe Perches --- mm/percpu.c | 4 ++-- mm/vmalloc.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index 0962e47..855c21c 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -711,8 +711,8 @@ static void __percpu *pcpu_alloc(size_t size, size_t align, bool reserved) unsigned long flags; if (unlikely(!size || size > PCPU_MIN_UNIT_SIZE || align > PAGE_SIZE)) { - WARN(true, "illegal size (%zu) or align (%zu) for " - "percpu allocation\n", size, align); + WARN(true, "illegal size (%zu) or align (%zu) for percpu allocation\n", + size, align); return NULL; } diff --git a/mm/vmalloc.c b/mm/vmalloc.c index eb5cc7d..eb58343 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1377,14 +1377,13 @@ static void __vunmap(const void *addr, int deallocate_pages) return; if ((PAGE_SIZE-1) & (unsigned long)addr) { - WARN(1, KERN_ERR "Trying to vfree() bad address (%p)\n", addr); + WARN(1, "Trying to vfree() bad address (%p)\n", addr); return; } area = remove_vm_area(addr); if (unlikely(!area)) { - WARN(1, KERN_ERR "Trying to vfree() nonexistent vm area (%p)\n", - addr); + WARN(1, "Trying to vfree() nonexistent vm area (%p)\n", addr); return; } -- 1.7.3.2.245.g03276.dirty -- 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/