Skip to content

Commit

Permalink
dyndbg: fix pr_err with empty string
Browse files Browse the repository at this point in the history
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: <jbaron@akamai.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200719231058.1586423-9-jim.cromie@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jim Cromie authored and Greg Kroah-Hartman committed Jul 24, 2020
1 parent f678ce8 commit 0b8f96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamic_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0b8f96b

Please sign in to comment.