Skip to contentSkip to conversation

scripts/checkpatch.pl: seperate mutiple results with black line

PATCH New Yan Hong 1 participant 1 message Sep 26, 2012 Checkpatch

lore
Share & tools
lore

Yan Hong

author
#0 lore raw

PATCH 1/1 scripts/checkpatch.pl: seperate mutiple results with black line

Before:
total: 0 errors, 0 warnings, 14 lines checked

XXXX.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 7 lines checked

XXXX.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 25 lines checked

XXXX.patch has no obvious style problems and is ready for submission.

After:
total: 0 errors, 0 warnings, 14 lines checked
XXXX.patch has no obvious style problems and is ready for submission.

total: 0 errors, 0 warnings, 7 lines checked
XXXX.patch has no obvious style problems and is ready for submission.

total: 0 errors, 0 warnings, 25 lines checked
XXXX.patch has no obvious style problems and is ready for submission.

Also leave two blank lines after the error message if check fails.

---
 scripts/checkpatch.pl |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +4 -2
index ca05ba2..15d9f08 100755
@@ -3588,7 +3588,7 @@ sub process {
 		print "$filename " if ($summary_file);
 		print "total: $cnt_error errors, $cnt_warn warnings, " .
 			(($check)? "$cnt_chk checks, " : "") .
-			"$cnt_lines lines checked\n";
+			"$cnt_lines lines checked";
 		print "\n" if ($quiet == 0);
 	}
 
@@ -3617,7 +3617,7 @@ sub process {
 	}
 
 	if ($clean == 1 && $quiet == 0) {
-		print "$vname has no obvious style problems and is ready for submission.\n"
+		print "$vname has no obvious style problems and is ready for submission.\n\n"
 	}
 	if ($clean == 0 && $quiet == 0) {
 		print << "EOM";
@@ -3625,6 +3625,8 @@ $vname has style problems, please review.
 
 If any of these errors are false positives, please report
 them to the maintainer, see CHECKPATCH in MAINTAINERS.
+
+
 EOM
 	}
 
Signature · 1 line
1.7.9.5