Messages in this thread Patch in this message | | | From | Joe Perches <> | Subject | [PATCH 13/28] open: Use current logging style | Date | Tue, 29 Nov 2011 18:14:11 -0800 |
| |
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
| |