[PATCH 13/28] open: Use current logging style

From: Joe Perches
Date: Tue Nov 29 2011 - 21:17:03 EST


Add and use pr_fmt and pr_<level>
No change to output using #define pr_fmt(fmt) fmt

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

diff --git a/fs/open.c b/fs/open.c
index 22c41b5..58c8d94 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -4,6 +4,8 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/

+#define pr_fmt(fmt) fmt
+
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/file.h>
@@ -1043,7 +1045,7 @@ int filp_close(struct file *filp, fl_owner_t id)
int retval = 0;

if (!file_count(filp)) {
- printk(KERN_ERR "VFS: Close: file count is 0\n");
+ pr_err("VFS: Close: file count is 0\n");
return 0;
}

--
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/