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
34743474 }
34753475 }
34763476
3477− if (keys %ignore_type) {
3477+ if ($quiet == 0 && keys %ignore_type) {
34783478 print "NOTE: Ignored message types:";
34793479 foreach my $ignore (sort keys %ignore_type) {
34803480 print " $ignore";
34813481 }
3482− print "\n";
3483− print "\n" if ($quiet == 0);
3482+ print "\n\n";
34843483 }
34853484
34863485 if ($clean == 1 && $quiet == 0) {