Add and use pr_fmt and pr_<level>. Prefix message with "file: " and convert embedded function name to "%s: ", __func__. Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> --- fs/locks.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index 3b0d05d..10f2bdb 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -114,6 +114,8 @@ * Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>, June, 2000. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/capability.h> #include <linux/file.h> #include <linux/fdtable.h> @@ -581,7 +583,7 @@ static void locks_delete_lock(struct file_lock **thisfl_p) fasync_helper(0, fl->fl_file, 0, &fl->fl_fasync); if (fl->fl_fasync != NULL) { - printk(KERN_ERR "locks_delete_lock: fasync == %p\n", fl->fl_fasync); + pr_err("%s: fasync == %p\n", __func__, fl->fl_fasync); fl->fl_fasync = NULL; } -- 1.7.6.405.gc1be0 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html