lkml.org 
[lkml]   [2011]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 13/28] open: Use current logging style
Date
Add and use pr_fmt and pr_<level>
No change to output using #define pr_fmt(fmt) fmt

Signed-off-by: Joe Perches <joe@perches.com>
---
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


\
 
 \ /
  Last update: 2011-11-30 03:19    [from the cache]
©2003-2011 Jasper Spaans