Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754691Ab0LFWHo (ORCPT ); Mon, 6 Dec 2010 17:07:44 -0500 Received: from mail.perches.com ([173.55.12.10]:2341 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754377Ab0LFWFX (ORCPT ); Mon, 6 Dec 2010 17:05:23 -0500 From: Joe Perches To: Jiri Kosina Cc: linux-kernel@vger.kernel.org Subject: [PATCH 20/29] fs: Update WARN uses Date: Mon, 6 Dec 2010 14:05:10 -0800 Message-Id: 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: 1836 Lines: 61 Coalesce long formats. Align arguments. Remove KERN_. Signed-off-by: Joe Perches --- fs/bio.c | 2 +- fs/buffer.c | 2 +- fs/super.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/bio.c b/fs/bio.c index 4bd454f..d366f05 100644 --- a/fs/bio.c +++ b/fs/bio.c @@ -134,7 +134,7 @@ static void bio_put_slab(struct bio_set *bs) } } - if (WARN(!bslab, KERN_ERR "bio: unable to find slab!\n")) + if (WARN(!bslab, "bio: unable to find slab!\n")) goto out; WARN_ON(!bslab->slab_ref); diff --git a/fs/buffer.c b/fs/buffer.c index 3a70821..7e060fd 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1191,7 +1191,7 @@ void __brelse(struct buffer_head * buf) put_bh(buf); return; } - WARN(1, KERN_ERR "VFS: brelse: Trying to free free buffer\n"); + WARN(1, "VFS: brelse: Trying to free free buffer\n"); } EXPORT_SYMBOL(__brelse); diff --git a/fs/super.c b/fs/super.c index ca51b70..7920ab9 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1012,8 +1012,9 @@ vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void * violate this rule. This warning should be either removed or * converted to a BUG() in 2.6.34. */ - WARN((mnt->mnt_sb->s_maxbytes < 0), "%s set sb->s_maxbytes to " - "negative value (%lld)\n", type->name, mnt->mnt_sb->s_maxbytes); + WARN((mnt->mnt_sb->s_maxbytes < 0), + "%s set sb->s_maxbytes to negative value (%lld)\n", + type->name, mnt->mnt_sb->s_maxbytes); mnt->mnt_mountpoint = mnt->mnt_root; mnt->mnt_parent = mnt; -- 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/