dyndbg: fix for SOH in logging messages
commit af7f2158fd
was done against master, and clashed with structured
logging's change of KERN_LEVEL to SOH.
Bisected and fixed by Markus Trippelsdorf.
Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jason Baron <jbaron@redhat.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7b7e995d69
commit
ebdc82899e
|
@ -1912,8 +1912,8 @@ int __dev_printk(const char *level, const struct device *dev,
|
|||
"DEVICE=+%s:%s", subsys, dev_name(dev));
|
||||
}
|
||||
skip:
|
||||
if (level[3])
|
||||
level_extra = &level[3]; /* skip past "<L>" */
|
||||
if (level[2])
|
||||
level_extra = &level[2]; /* skip past KERN_SOH "L" */
|
||||
|
||||
return printk_emit(0, level[1] - '0',
|
||||
dictlen ? dict : NULL, dictlen,
|
||||
|
|
Loading…
Reference in a new issue