aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorJim Cromie <[email protected]>2020-07-19 23:10:48 +0000
committerGreg Kroah-Hartman <[email protected]>2020-07-24 15:00:08 +0000
commit0b8f96be9bd41521b6379b403cfce78934f8274c (patch)
treec0753b1f4bc11f135f4020b671c7ce7b800e2490 /lib/dynamic_debug.c
parentdyndbg: fix a BUG_ON in ddebug_describe_flags (diff)
downloadkernel-0b8f96be9bd41521b6379b403cfce78934f8274c.tar.gz
kernel-0b8f96be9bd41521b6379b403cfce78934f8274c.zip
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: <[email protected]> Signed-off-by: Jim Cromie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 0cb5679f6c54..1d25a846553b 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;
}
}