summaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorAndre Kalb <andre.kalb@sma.de>2022-02-16 13:41:38 +0300
committerPetr Mladek <pmladek@suse.com>2022-02-21 17:52:08 +0300
commita5a763b2b26678f1e01b2d031819b175d8f14555 (patch)
treefbad2042c0abcaf53998c5647bf678213ca344ae /lib/vsprintf.c
parent96b02f2fbde29a08ac7239fd9ba87ff870cf8a94 (diff)
downloadlinux-a5a763b2b26678f1e01b2d031819b175d8f14555.tar.xz
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: Petr Mladek <pmladek@suse.com> Signed-off-by: Andre Kalb <andre.kalb@sma.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/YgzU4ho8l6XapyG2@pc6682
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions