printk: change message to pr_info
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 22 Mar 2018 13:58:33 +0000 (14:58 +0100)
committerPetr Mladek <pmladek@suse.com>
Fri, 23 Mar 2018 14:41:59 +0000 (15:41 +0100)
To allow userspace to prevent this message from appearing in the
console by changing the log priority.

This matches other informative messages that the power subsystem emits
when the system changes power states.

Link: http://lkml.kernel.org/r/20180322135833.16602-1-tomeu.vizoso@collabora.com
To: linux-kernel@vger.kernel.org
Cc: kernel@collabora.com
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c

index dc663f28846327fc0c1a3517bdff316ba1cd7577..333f58eac420f3355a05ce8d36a0d21d37e82312 100644 (file)
@@ -2161,7 +2161,7 @@ void suspend_console(void)
 {
        if (!console_suspend_enabled)
                return;
-       printk("Suspending console(s) (use no_console_suspend to debug)\n");
+       pr_info("Suspending console(s) (use no_console_suspend to debug)\n");
        console_lock();
        console_suspended = 1;
        up_console_sem();