diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2011-12-19 17:12:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 15:46:45 -0500 |
commit | ae27f86a21eb9a9e005f06b126eb88662ba4f940 (patch) | |
tree | 365183b662741c4ec797792faca06fa5b963b8a8 | |
parent | bc757f6f5bf4e9251bbc1a3419c94ffe9fd3e2ee (diff) |
dynamic_debug: pr_err() call should not depend upon verbosity
Issue keyword/parsing errors even w/o verbose set;
uncover otherwize mysterious non-functionality.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | lib/dynamic_debug.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 6fc8622f0a83..d232025cb85c 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c | |||
@@ -322,8 +322,7 @@ static int ddebug_parse_query(char *words[], int nwords, | |||
322 | query->last_lineno = query->first_lineno; | 322 | query->last_lineno = query->first_lineno; |
323 | } | 323 | } |
324 | } else { | 324 | } else { |
325 | if (verbose) | 325 | pr_err("unknown keyword \"%s\"\n", words[i]); |
326 | pr_err("unknown keyword \"%s\"\n", words[i]); | ||
327 | return -EINVAL; | 326 | return -EINVAL; |
328 | } | 327 | } |
329 | } | 328 | } |