Add and use pr_fmt and pr_<level> Now prefixed a single message with "file: " and changed an embedded function name to "%s: ", __func__. Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> --- fs/file.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/file.c b/fs/file.c index 4c6992d..a88b110 100644 --- a/fs/file.c +++ b/fs/file.c @@ -6,6 +6,8 @@ * Manage the dynamic fd arrays in the process files_struct. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/module.h> #include <linux/fs.h> #include <linux/mm.h> @@ -469,7 +471,7 @@ repeat: #if 1 /* Sanity check */ if (rcu_dereference_raw(fdt->fd[fd]) != NULL) { - printk(KERN_WARNING "alloc_fd: slot %d not NULL!\n", fd); + pr_warn("%s: slot %d not NULL!\n", __func__, fd); rcu_assign_pointer(fdt->fd[fd], NULL); } #endif -- 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