Skip to content

Commit 47319f7

Browse files
tomeuvpmladek
authored andcommitted
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/[email protected] To: [email protected] Cc: [email protected] Cc: Steven Rostedt <[email protected]> Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
1 parent e36df28 commit 47319f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/printk/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ void suspend_console(void)
21612161
{
21622162
if (!console_suspend_enabled)
21632163
return;
2164-
printk("Suspending console(s) (use no_console_suspend to debug)\n");
2164+
pr_info("Suspending console(s) (use no_console_suspend to debug)\n");
21652165
console_lock();
21662166
console_suspended = 1;
21672167
up_console_sem();

0 commit comments

Comments
 (0)