aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorJim Cromie <[email protected]>2011-12-19 22:12:34 +0000
committerGreg Kroah-Hartman <[email protected]>2012-01-24 20:46:45 +0000
commitae27f86a21eb9a9e005f06b126eb88662ba4f940 (patch)
tree365183b662741c4ec797792faca06fa5b963b8a8 /lib/dynamic_debug.c
parentdynamic_debug: replace strcpy with strlcpy, in ddebug_setup_query() (diff)
downloadkernel-ae27f86a21eb9a9e005f06b126eb88662ba4f940.tar.gz
kernel-ae27f86a21eb9a9e005f06b126eb88662ba4f940.zip
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 <[email protected]> Signed-off-by: Jason Baron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c3
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,
query->last_lineno = query->first_lineno;
}
} else {
- if (verbose)
- pr_err("unknown keyword \"%s\"\n", words[i]);
+ pr_err("unknown keyword \"%s\"\n", words[i]);
return -EINVAL;
}
}