[PATCH 09/28] dcache: Use current logging style

From: Joe Perches
Date: Tue Nov 29 2011 - 21:16:14 EST


Add and use pr_fmt and pr_<level>.
No change in output with #define pr_fmt(fmt) fmt

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
fs/dcache.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index 3abfec7..6055631 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -14,6 +14,8 @@
* the dcache entry is deleted or garbage collected.
*/

+#define pr_fmt(fmt) fmt
+
#include <linux/syscalls.h>
#include <linux/string.h>
#include <linux/mm.h>
@@ -890,10 +892,7 @@ static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
__d_shrink(dentry);

if (dentry->d_count != 0) {
- printk(KERN_ERR
- "BUG: Dentry %p{i=%lx,n=%s}"
- " still in use (%d)"
- " [unmount of %s %s]\n",
+ pr_err("BUG: Dentry %p{i=%lx,n=%s} still in use (%d) [unmount of %s %s]\n",
dentry,
dentry->d_inode ?
dentry->d_inode->i_ino : 0UL,
@@ -2164,7 +2163,7 @@ static void dentry_unlock_parents_for_move(struct dentry *dentry,
static void __d_move(struct dentry * dentry, struct dentry * target)
{
if (!dentry->d_inode)
- printk(KERN_WARNING "VFS: moving negative dcache entry\n");
+ pr_warn("VFS: moving negative dcache entry\n");

BUG_ON(d_ancestor(dentry, target));
BUG_ON(d_ancestor(target, dentry));
--
1.7.6.405.gc1be0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/