diff options
| author | David Engraf <david.engraf@sysgo.com> | 2026-09-24 10:00:57 +0300 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-10-02 16:39:35 +0200 |
| commit | b80fc54890d44cd35360ca122b72224fe78061bf (patch) | |
| tree | 2bee6e262909c26d8eab67ef4c533708ab9b4dbb /tools/lib/python | |
| parent | ae30792e536c80aed87fb11ec9140e55ed99da09 (diff) | |
| download | linux-next-b80fc54890d44cd35360ca122b72224fe78061bf.tar.gz linux-next-b80fc54890d44cd35360ca122b72224fe78061bf.zip | |
printk: Remove console options before decoding the name
This fixes a regression when a console option includes ':'. Commit
7640f1a44eba ("printk: Add match_devname_and_update_preferred_console()")
introduced console=DEVNAME:0.0 hardware style addressing by looking for a
colon. If the colon is part of an option the name is handled as devname
instead of ttyname.
Fix by handling the options first which will add a NULL terminator to the
string. Note that parsing the options first means that also idx parsing
needs changing. Handle the idx parsing by refactoring the code (thanks to
Petr Mladek).
Signed-off-by: David Engraf <david.engraf@sysgo.com>
Reviewed-by: Tony Lindgren <tony.lindgren@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Link: https://patch.msgid.link/20260924070153.250783-2-david.engraf@sysgo.com
[pmladek@suse.com: Updated the commit message as suggested by Tony Lindgren]
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
