[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1538232529-72706-3-git-send-email-zhe.he@windriver.com>
Date: Sat, 29 Sep 2018 22:48:48 +0800
From: <zhe.he@...driver.com>
To: <pmladek@...e.com>, <sergey.senozhatsky@...il.com>,
<rostedt@...dmis.org>, <linux-kernel@...r.kernel.org>,
<zhe.he@...driver.com>
Subject: [PATCH v4 3/4] printk: Add KBUILD_MODNAME
From: He Zhe <zhe.he@...driver.com>
Add KBUILD_MODNAME to make prints more clear.
Signed-off-by: He Zhe <zhe.he@...driver.com>
Cc: pmladek@...e.com
Cc: sergey.senozhatsky@...il.com
Cc: rostedt@...dmis.org
---
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
Powered by blists - more mailing lists