diff options
author | Andre Kalb <[email protected]> | 2022-02-16 11:41:38 +0100 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2022-02-21 15:52:08 +0100 |
commit | a5a763b2b26678f1e01b2d031819b175d8f14555 (patch) | |
tree | fbad2042c0abcaf53998c5647bf678213ca344ae /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 96b02f2fbde29a08ac7239fd9ba87ff870cf8a94 (diff) |
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 <[email protected]>
Signed-off-by: Andre Kalb <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/YgzU4ho8l6XapyG2@pc6682
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions