[PATCH 14/28] stat: Use current logging style
From: Joe Perches
Date: Tue Nov 29 2011 - 21:17:19 EST
Add and use pr_fmt and pr_<level>.
No change to output with #define pr_fmt(fmt) fmt
Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
fs/stat.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fs/stat.c b/fs/stat.c
index 8806b89..ff9be35 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -4,6 +4,8 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/
+#define pr_fmt(fmt) fmt
+
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/errno.h>
@@ -121,7 +123,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
if (warncount > 0) {
warncount--;
- printk(KERN_WARNING "VFS: Warning: %s using old stat() call. Recompile your binary.\n",
+ pr_warn("VFS: Warning: %s using old stat() call. Recompile your binary.\n",
current->comm);
} else if (warncount < 0) {
/* it's laughable, but... */
--
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/