2018-03-22 14:00:24

by Tomeu Vizoso

[permalink] [raw]
Subject: [PATCH v1] 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.

Signed-off-by: Tomeu Vizoso <[email protected]>
---
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 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();
--
2.14.3



2018-03-22 14:09:34

by Sergey Senozhatsky

[permalink] [raw]
Subject: Re: [PATCH v1] printk: change message to pr_info

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 <[email protected]>

Well, no objections,

Reviewed-by: Sergey Senozhatsky <[email protected]>

-ss

2018-03-23 15:27:29

by Petr Mladek

[permalink] [raw]
Subject: Re: [PATCH v1] printk: change message to pr_info

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 <[email protected]>

I have pushed it into printk.git, branch for-4.17.

Best Regards,
Petr