History

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.

Artem Bityutskiy committed 14 years ago

Commit 11232681 parent d1fe9c01 file · +2 −3Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+2−3
@@ -3474,13 +3474,12 @@ sub process { · 3473 unmodified lines
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) {