diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2018-03-22 14:58:33 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2018-03-23 15:41:59 +0100 |
commit | 47319f7186b8746521b0ee674054b29d7b35578b (patch) | |
tree | 60c4a0e2e057579029994478741f666b27d30e6c | |
parent | e36df28f532f882965404d58e240f2e058b61f45 (diff) |
printk: change message to pr_info
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>
-rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index dc663f288463..333f58eac420 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -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(); |