]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
checkpatch: fix up complex macros context format
authorAndy Whitcroft <apw@canonical.com>
Thu, 8 Dec 2011 04:42:21 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:51:57 +0000 (16:51 +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");
                                }
                        }
                }