aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2009-09-21 20:04:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-22 10:17:48 -0400
commitea71a0a019f913bdf506103bd90140d93a2b83f0 (patch)
tree0d5cf1171809bf012054c7a028beb93450a664fa /scripts
parent77f5b10a82bbd832c99ec4b120d5645342a5b140 (diff)
checkpatch: format strings should not have brackets in macros
We should not recommend braces for the following: #define pr_fmt(fmt) "%s: " fmt, __func__ allow things with double quotes round them to avoid this check. Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e3c6b4922fff..57df90699219 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2288,7 +2288,8 @@ sub process {
2288 DECLARE_PER_CPU| 2288 DECLARE_PER_CPU|
2289 DEFINE_PER_CPU| 2289 DEFINE_PER_CPU|
2290 __typeof__\(| 2290 __typeof__\(|
2291 \.$Ident\s*=\s* 2291 \.$Ident\s*=\s*|
2292 ^\"|\"$
2292 }x; 2293 }x;
2293 #print "REST<$rest> dstat<$dstat>\n"; 2294 #print "REST<$rest> dstat<$dstat>\n";
2294 if ($rest ne '') { 2295 if ($rest ne '') {