[PATCH v4 3/4] printk: Add KBUILD_MODNAME
From: zhe.he
Date: Sat Sep 29 2018 - 10:50:01 EST
From: He Zhe <zhe.he@xxxxxxxxxxxxx>
Add KBUILD_MODNAME to make prints more clear.
Signed-off-by: He Zhe <zhe.he@xxxxxxxxxxxxx>
Cc: pmladek@xxxxxxxx
Cc: sergey.senozhatsky@xxxxxxxxx
Cc: rostedt@xxxxxxxxxxx
---
kernel/printk/printk.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c9a0be3..b84aac0 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -16,6 +16,8 @@
* 01Mar01 Andrew Morton
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/tty.h>
--
2.7.4