Skip to content

Commit 1123268

Browse files
dedekindtorvalds
authored andcommitted
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>
1 parent d1fe9c0 commit 1123268

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/checkpatch.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,13 +3474,12 @@ sub process {
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) {

0 commit comments

Comments
 (0)