dyndbg: fix for SOH in logging messages
PATCH 1/1 dyndbg: fix for SOH in logging messages
commit af7f2158fde was done against master, and clashed with structured logging's change of KERN_LEVEL to SOH.
Bisected and fixed by Markus Trippelsdorf.
--- drivers/base/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/base/core.c +2 -2
@@ -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,
Signature · 1 line
1.7.10.1.487.ga3935e6
Quoted 15 lines · Jim Cromie
commit
af7f2158fdewas done against master, and clashed with structured logging's change ofKERN_LEVELto SOH.Bisected and fixed by Markus Trippelsdorf.
CC Markus Trippelsdorf <[email protected]>Signed-off-by Jim Cromie <[email protected]>--- drivers/base/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/base/core.c +0
-0
drivers/base/core.c int __dev_printk(const char *level, const struct device *dev, · line 1919
Quoted 10 lines
drivers/base/core.c +2
-2@@ -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,
No, this still doesn't resolve the issue for me, it still looks like it did before this patch (exactly the same to be exact.)
I do seem to get the correct output if I revert your original patch (af7f2158fde), should I just do that instead?
greg k-h
Quoted 24 lines · Greg KH
Quoted 23 lines · Jim Cromie
commit
af7f2158fdewas done against master, and clashed with structured logging's change ofKERN_LEVELto SOH.Bisected and fixed by Markus Trippelsdorf.
CC Markus Trippelsdorf <[email protected]>Signed-off-by Jim Cromie <[email protected]>--- drivers/base/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/base/core.c +2
-2@@ -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" */
Quoted 8 lines
drivers/base/core.c int __dev_printk(const char *level, const struct device *dev, · line 1919
Quoted 2 lines
drivers/base/core.c +0
-0return printk_emit(0, level[1] - '0', dictlen ? dict : NULL, dictlen,No, this still doesn't resolve the issue for me, it still looks like it did before this patch (exactly the same to be exact.)
I do seem to get the correct output if I revert your original patch (
af7f2158fde), should I just do that instead?
Crap, no, sorry, it's late, I didn't apply your patch at all (--dry-run only, my bad).
Let me go test this for real now, my applogies...
greg k-h
Quoted 31 lines · Greg KH
Quoted 30 lines · Greg KH
Quoted 15 lines · Jim Cromie
commit
af7f2158fdewas done against master, and clashed with structured logging's change ofKERN_LEVELto SOH.Bisected and fixed by Markus Trippelsdorf.
CC Markus Trippelsdorf <[email protected]>Signed-off-by Jim Cromie <[email protected]>--- drivers/base/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/base/core.c +0
-0drivers/base/core.c int __dev_printk(const char *level, const struct device *dev, · line 1919
Quoted 10 lines
drivers/base/core.c +2
-2@@ -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,No, this still doesn't resolve the issue for me, it still looks like it did before this patch (exactly the same to be exact.)
Quoted 7 lines
Quoted 2 lines
I do seem to get the correct output if I revert your original patch (
af7f2158fde), should I just do that instead?Crap, no, sorry, it's late, I didn't apply your patch at all (--dry-run only, my bad).
Let me go test this for real now, my applogies...
And it works, sorry for the noise, I'll go queue it up now.
greg k-h