Skip to content
Commit a5a763b2 authored by Andre Kalb's avatar Andre Kalb Committed by Petr Mladek
Browse files

printk: Set console_set_on_cmdline=1 when __add_preferred_console() is called...


printk: Set console_set_on_cmdline=1 when __add_preferred_console() is called with user_specified == true

In case of using console="" or console=null
set console_set_on_cmdline=1 to disable "stdout-path" node from DT.

We basically need to set it every time when __add_preferred_console()
is called with parameter 'user_specified' set.
Therefore we can move setting it into a helper function that is
called from __add_preferred_console().

Suggested-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarAndre Kalb <andre.kalb@sma.de>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Reviewed-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/YgzU4ho8l6XapyG2@pc6682
parent 96b02f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment