]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
checkpatch: fix up complex macros context format
authorAndy Whitcroft <apw@canonical.com>
Fri, 16 Dec 2011 04:50:16 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:40 +0000 (18:19 +1100)
Fix a missing newline and correctly use the raw context for the
complex macro report.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl

index 20de4fdbb96da07d044cf4e106b6579f62ff2d09..06e22caa5692d81a482e1254e470b0129e1050d7 100755 (executable)
@@ -2851,7 +2851,7 @@ sub process {
                                              "Macros with multiple statements should be enclosed in a do - while loop\n" . "$herectx");
                                } else {
                                        ERROR("COMPLEX_MACRO",
-                                             "Macros with complex values should be enclosed in parenthesis\n" . "$here$ctx");
+                                             "Macros with complex values should be enclosed in parenthesis\n" . "$herectx");
                                }
                        }
                }