public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Make checkpatch.pl's quiet option not print the summary on no errors
@ 2008-01-03  0:54 Arjan van de Ven
  2008-01-03 13:09 ` Andy Whitcroft
  2008-01-15 20:10 ` Andy Whitcroft
  0 siblings, 2 replies; 6+ messages in thread
From: Arjan van de Ven @ 2008-01-03  0:54 UTC (permalink / raw)
  To: apw; +Cc: linux-kernel

Subject: Make checkpatch.pl's quiet option not print the summary on no errors
From: Arjan van de Ven <arjan@linux.intel.com>
CC: apw@uk.ibm.com

Right now, in quiet mode, checkpatch.pl still prints a summary line even
if the patch is 100% clean. IMO, "quiet mode" should mean "no output if clean",
the patch below makes that so. (This also makes the quilt integration
on my system work nicer :)

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>

---
  scripts/checkpatch.pl |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.24-rc6/scripts/checkpatch.pl
===================================================================
--- linux-2.6.24-rc6.orig/scripts/checkpatch.pl
+++ linux-2.6.24-rc6/scripts/checkpatch.pl
@@ -1579,7 +1579,7 @@ sub process {
  	}

  	print report_dump();
-	if ($summary) {
+	if ($summary && ($clean == 0 || $quiet == 0)) {
  		print "total: $cnt_error errors, $cnt_warn warnings, " .
  			(($check)? "$cnt_chk checks, " : "") .
  			"$cnt_lines lines checked\n";

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-17 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-03  0:54 Make checkpatch.pl's quiet option not print the summary on no errors Arjan van de Ven
2008-01-03 13:09 ` Andy Whitcroft
2008-01-15 20:10 ` Andy Whitcroft
2008-01-15 21:58   ` Ingo Molnar
2008-01-16 11:06   ` Ingo Molnar
2008-01-17 17:05     ` Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox