[PATCH 03/18] printk: Convert pr_fmt from blank define to KBUILD_MODNAME

From: Joe Perches
Date: Thu May 10 2018 - 11:50:00 EST


There are more than 1000 uses of #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Make that the default define so these uses can be removed later via script.

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
include/linux/printk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/printk.h b/include/linux/printk.h
index 6d7e800affd8..172dce24e1b6 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -285,7 +285,7 @@ static inline void printk_safe_flush_on_panic(void)
extern int kptr_restrict;

#ifndef pr_fmt
-#define pr_fmt(fmt) fmt
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#endif

/*
--
2.15.0