summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2016-12-07 10:53:09 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2016-12-09 07:55:33 +1100
commit32b008355bdaaf6623d682c1be1d0e9cf70d86c9 (patch)
treeb91309e776996f72bfad16f3b9cb03f19b91a6f4 /sound/core
parent9db147b378dac6e98925b93d6ceb1cd9ee1eccfb (diff)
printk/sound: Fix a check of the valid message level
Huh, this was a childish mistake. Link: http://lkml.kernel.org/r/20161111183444.GE2145@dhcp128.suse.cz Signed-off-by: Petr Mladek <pmladek@suse.com> Reported-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/misc.c b/sound/core/misc.c
index 45f03b1d4102..21b228046e88 100644
--- a/sound/core/misc.c
+++ b/sound/core/misc.c
@@ -88,7 +88,7 @@ void __snd_printk(unsigned int level, const char *path, int line,
const char *end_of_header = printk_skip_level(vaf.fmt);
/* Ignore KERN_CONT. We print filename:line for each piece. */
- if (kern_level >= '0' || kern_level <= '7') {
+ if (kern_level >= '0' && kern_level <= '7') {
memcpy(verbose_fmt, vaf.fmt, end_of_header - vaf.fmt);
level_found = true;
}