From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: [PATCH 04/28] libfs: Use current logging styles Date: Tue, 29 Nov 2011 18:14:02 -0800 Message-ID: References: Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Alexander Viro Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Add and use pr_fmt and pr_. Coalesce long format strings. Signed-off-by: Joe Perches --- fs/libfs.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/libfs.c b/fs/libfs.c index f6d411e..ad1532f 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -3,6 +3,8 @@ * Library for filesystems writers. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -502,9 +504,8 @@ int simple_fill_super(struct super_block *s, unsigned long magic, /* warn if it tries to conflict with the root inode */ if (unlikely(i == 1)) - printk(KERN_WARNING "%s: %s passed in a files array" - "with an index of 1!\n", __func__, - s->s_type->name); + pr_warn("%s: %s passed in a files array with an index of 1!\n", + __func__, s->s_type->name); dentry = d_alloc_name(root, files->name); if (!dentry) -- 1.7.6.405.gc1be0