linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] printk: change message to pr_info
@ 2018-03-22 13:58 Tomeu Vizoso
  2018-03-22 14:07 ` Sergey Senozhatsky
  2018-03-23 15:25 ` Petr Mladek
  0 siblings, 2 replies; 3+ messages in thread
From: Tomeu Vizoso @ 2018-03-22 13:58 UTC (permalink / raw)
  To: linux-kernel
  Cc: kernel, Tomeu Vizoso, Petr Mladek, Sergey Senozhatsky, Steven Rostedt

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(-)

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] printk: change message to pr_info
  2018-03-22 13:58 [PATCH v1] printk: change message to pr_info Tomeu Vizoso
@ 2018-03-22 14:07 ` Sergey Senozhatsky
  2018-03-23 15:25 ` Petr Mladek
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey Senozhatsky @ 2018-03-22 14:07 UTC (permalink / raw)
  To: Tomeu Vizoso
  Cc: linux-kernel, kernel, Petr Mladek, Sergey Senozhatsky, Steven Rostedt

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] printk: change message to pr_info
  2018-03-22 13:58 [PATCH v1] printk: change message to pr_info Tomeu Vizoso
  2018-03-22 14:07 ` Sergey Senozhatsky
@ 2018-03-23 15:25 ` Petr Mladek
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Mladek @ 2018-03-23 15:25 UTC (permalink / raw)
  To: Tomeu Vizoso; +Cc: linux-kernel, kernel, Sergey Senozhatsky, Steven Rostedt

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-23 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22 13:58 [PATCH v1] printk: change message to pr_info Tomeu Vizoso
2018-03-22 14:07 ` Sergey Senozhatsky
2018-03-23 15:25 ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).