Message ID | 20180322135833.16602-1-tomeu.vizoso@collabora.com |
---|---|
State | New |
Headers | show |
Series | [v1] printk: change message to pr_info | expand |
On (03/22/18 14:58), Tomeu Vizoso wrote: > 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. > > Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Well, no objections, Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> -ss
On Thu 2018-03-22 14:58:33, Tomeu Vizoso wrote: > 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. Looks good: Reviewed-by: Petr Mladek <pmladek@suse.com> I have pushed it into printk.git, branch for-4.17. Best Regards, Petr
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 63f4c87f7a3d..704e55129c3a 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();
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. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3