The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] checkpatch: improve error message for p1-check
@ 2011-10-19 12:33 Wolfram Sang
  2011-10-26 20:30 ` David Rientjes
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfram Sang @ 2011-10-19 12:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jonathan Cameron, Wolfram Sang, Andy Whitcroft

The old error message was not precise. State now explicitly that the
prefix exists as a file/directory. Also change the conclusion ("appears
to be") into an instruction ("make sure").

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Andy Whitcroft <apw@canonical.com>
---
 scripts/checkpatch.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3dfc471..4bb4f88 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1506,7 +1506,7 @@ sub process {
 			if (!$file && $tree && $p1_prefix ne '' &&
 			    -e "$root/$p1_prefix") {
 				WARN("PATCH_PREFIX",
-				     "patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n");
+				     "patch prefix '$p1_prefix' exists as file/directory. Make sure this isn't a -p0 patch\n");
 			}
 
 			if ($realfile =~ m@^include/asm/@) {
-- 
1.7.6.3


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

end of thread, other threads:[~2011-10-27 21:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-19 12:33 [PATCH] checkpatch: improve error message for p1-check Wolfram Sang
2011-10-26 20:30 ` David Rientjes
2011-10-26 22:51   ` Joe Perches
2011-10-26 23:08     ` David Rientjes
2011-10-26 23:14       ` Joe Perches
2011-10-26 23:34         ` David Rientjes
2011-10-26 23:44           ` Joe Perches
2011-10-27 20:11             ` David Rientjes
2011-10-27 20:29               ` Joe Perches
2011-10-27 21:01                 ` David Rientjes

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