Re: [PATCH] printk: Remove console options before decoding the name
From: David Engraf
Date: Wed Sep 16 2026 - 01:52:03 EST
On 16.09.26 08:48 wrote Tony Lindgren:
On Wed, Sep 16, 2026 at 08:32:18AM +0300, David Engraf wrote:
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2646,24 +2646,22 @@ static int __init console_setup(char *str)
if (_braille_console_setup(&str, &brl_options))
return 1;
+ /* Decode str into name, index, options */
+ options = strchr(str, ',');
+ if (options)
+ *(options++) = 0;
+
How about update the comment for why it needs to be first?
Maybe something like:
Decode str into options first. The options may contain a ':' used also
for DEVNAME.
Okay I can update the comment if there are no other objections.
Best regards
- David