Re: [PATCH v4 3/4] printk: Add KBUILD_MODNAME

From: Sergey Senozhatsky
Date: Sat Sep 29 2018 - 12:06:58 EST


On (09/29/18 22:48), zhe.he@xxxxxxxxxxxxx wrote:
>
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +

Plus this one

---

kernel/printk/printk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c9068074dd09..e32f93a2fa84 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2732,7 +2732,7 @@ void register_console(struct console *newcon)

if (newcon->flags & CON_EXTENDED)
if (!nr_ext_console_drivers++)
- pr_info("printk: continuation disabled due to ext consoles, expect more fragments in /dev/kmsg\n");
+ pr_info("continuation disabled due to ext consoles, expect more fragments in /dev/kmsg\n");

if (newcon->flags & CON_PRINTBUFFER) {
/*

---

-ss