Subject: Make checkpatch.pl's quiet option not print the summary on no errors From: Arjan van de Ven <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> --- 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"; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/