LKML Archive on
help / color / mirror / Atom feed
From: Paolo Ciarrocchi <>
To: Linux Kernel <>,
Subject: checkpatch: add filename before the summary line
Date: Sun, 13 Jan 2008 23:34:05 +0100	[thread overview]
Message-ID: <20080113233405.5fcdaff5@paolo-desktop> (raw)

With the patch applied the output of is as follow:
total: 1 errors, 0 warnings, 48 lines checked

Adding the file name allowed me to collects stats running:
	find . -name *.c |xargs ./scripts/ --file |grep -B 1 total
but I though it might me useful for other purposes to add the file name
after the list of errors and warnings and before the summary,
when the list is long I find handy to print out the filename as a reminder.
Signed-off-by: Paolo Ciarrocchi <>

diff --git a/scripts/ b/scripts/
index 579f50f..079c73c 100755
--- a/scripts/
+++ b/scripts/
@@ -1580,6 +1580,7 @@ sub process {
 	print report_dump();
 	if ($summary) {
+		print "$filename \n";
 		print "total: $cnt_error errors, $cnt_warn warnings, " .
 			(($check)? "$cnt_chk checks, " : "") .
 			"$cnt_lines lines checked\n";

             reply	other threads:[~2008-01-13 22:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-13 22:34 Paolo Ciarrocchi [this message]
2008-01-14 17:30 ` Andy Whitcroft
2008-01-14 22:13   ` Paolo Ciarrocchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080113233405.5fcdaff5@paolo-desktop \ \ \ \
    --subject='Re: checkpatch: add filename before the summary line' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).