dynamic_debug: pr_err() call should not depend upon verbosity
authorJim Cromie <jim.cromie@gmail.com>
Mon, 19 Dec 2011 22:12:34 +0000 (17:12 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:46:45 +0000 (12:46 -0800)
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>
lib/dynamic_debug.c

index 6fc8622f0a8343aafa1c976c8b8819d586939ee2..d232025cb85c908113e1667394f9c3545e48937e 100644 (file)
@@ -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;
                }
        }