Skip to contentSkip to conversation

checkpatch: Print filenames of patches

PATCH In review Geert Uytterhoeven 2 participants 2 messages Nov 18, 2007 – Nov 20, 2007 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: Print filenames of patches

checkpatch: Print filenames of patches instead of the very uninformative `Your patch'.

---
This patch is not `checkpatch' clean :-)
Although I shortened 2 lines, they're still longer than 80 characters...

 scripts/checkpatch.pl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +2 -2
@@ -1408,10 +1408,10 @@ sub process {
 		}
 	}
 	if ($clean == 1 && $quiet == 0) {
-		print "Your patch has no obvious style problems and is ready for submission.\n"
+		print "$filename has no obvious style problems and is ready for submission.\n"
 	}
 	if ($clean == 0 && $quiet == 0) {
-		print "Your patch has style problems, please review.  If any of these errors\n";
+		print "$filename has style problems, please review.  If any of these errors\n";
 		print "are false positives report them to the maintainer, see\n";
 		print "CHECKPATCH in MAINTAINERS.\n";
 	}

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#1 lore raw
Quoted 2 lines · Geert Uytterhoeven

checkpatch: Print filenames of patches instead of the very uninformative `Your patch'.

Well this isn't quite enough as we often use this thing checking its stdin. Which leads to an even less useful '- has no obvious ...'. I guess a hybrid would be an improvement.

Quoted 4 lines

---
This patch is not `checkpatch' clean :-)
Although I shortened 2 lines, they're still longer than 80 characters...

Heh, yeah its a pig getting those RE's into 80 chars.

Quoted 8 lines
 scripts/checkpatch.pl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +0 -0
@@ -1408,10 +1408,10 @@ sub process {
 		}
 	}

scripts/checkpatch.pl sub process { · line 1417

Quoted 10 lines
scripts/checkpatch.pl +2 -2
 	if ($clean == 1 && $quiet == 0) {
-		print "Your patch has no obvious style problems and is ready for submission.\n"
+		print "$filename has no obvious style problems and is ready for submission.\n"
 	}
 	if ($clean == 0 && $quiet == 0) {
-		print "Your patch has style problems, please review.  If any of these errors\n";
+		print "$filename has style problems, please review.  If any of these errors\n";
 		print "are false positives report them to the maintainer, see\n";
 		print "CHECKPATCH in MAINTAINERS.\n";
 	}

-apw