[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YfMkJKUuGBwyT611@pc6682>
Date: Fri, 28 Jan 2022 00:00:52 +0100
From: Andre Kalb <svc.sw.rte.linux@....de>
To: Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Steven Rostedt <rostedt@...dmis.org>,
John Ogness <john.ogness@...utronix.de>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] printk: Set console_set_on_cmdline=1 when using console=""
or console=null
In case of using console="" or console=null set console_set_on_cmdline=1
to disable chosen{ "stdout-path" } node from devicetree.
To jump out from drivers/of/base.c, line 2087 of_console_check function
with false.
Signed-off-by: Andre Kalb <andre.kalb@....de>
---
kernel/printk/printk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 82abfaf3c2aa..df5ab35b8af2 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2385,6 +2385,7 @@ static int __init console_setup(char *str)
*/
if (str[0] == 0 || strcmp(str, "null") == 0) {
__add_preferred_console("ttynull", 0, NULL, NULL, true);
+ console_set_on_cmdline = 1;
return 1;
}
--
2.31.1
Powered by blists - more mailing lists