From: Jim Cromie Date: Sun, 19 Jul 2020 23:10:48 +0000 (-0600) Subject: dyndbg: fix pr_err with empty string X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0b8f96be9bd41521b6379b403cfce78934f8274c;p=linux.git dyndbg: fix pr_err with empty string this pr_err attempts to print the string after the OP, but the string has been parsed and chopped up, so looks empty. Acked-by: Signed-off-by: Jim Cromie Link: https://lore.kernel.org/r/20200719231058.1586423-9-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 0cb5679f6c54c..1d25a846553b3 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -420,7 +420,7 @@ static int ddebug_parse_flags(const char *str, unsigned int *flagsp, } } if (i < 0) { - pr_err("unknown flag '%c' in \"%s\"\n", *str, str); + pr_err("unknown flag '%c'\n", *str); return -EINVAL; } }