aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <dedekind1@gmail.com>2012-03-23 18:02:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-23 19:58:36 -0400
commit11232688ec41a507cdb476fc4e88aff8a3a34c3c (patch)
tree4b8aa11d480277531d3c96cf7acf5180540269d8
parentd1fe9c099cecc6e49324355f1b15573e9dbbe0f9 (diff)
checkpatch.pl: be silent when -q and --ignore is given
Fix checkpatch.pl when both -q and --ignore are given and prevents it from printing a NOTE: Ignored message types: blah messages. E.g., if I use -q --ignore PREFER_PACKED,PREFER_ALIGNED, i see: NOTE: Ignored message types: PREFER_ALIGNED PREFER_PACKED It makes no sense to print this when -q is given. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-xscripts/checkpatch.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 308e4015bd8e..0ee37bfdfd68 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3474,13 +3474,12 @@ sub process {
3474 } 3474 }
3475 } 3475 }
3476 3476
3477 if (keys %ignore_type) { 3477 if ($quiet == 0 && keys %ignore_type) {
3478 print "NOTE: Ignored message types:"; 3478 print "NOTE: Ignored message types:";
3479 foreach my $ignore (sort keys %ignore_type) { 3479 foreach my $ignore (sort keys %ignore_type) {
3480 print " $ignore"; 3480 print " $ignore";
3481 } 3481 }
3482 print "\n"; 3482 print "\n\n";
3483 print "\n" if ($quiet == 0);
3484 } 3483 }
3485 3484
3486 if ($clean == 1 && $quiet == 0) { 3485 if ($clean == 1 && $quiet == 0) {