From: Andy Whitcroft Date: Thu, 8 Dec 2011 04:42:21 +0000 (+1100) Subject: checkpatch: fix up complex macros context format X-Git-Tag: next-20111213~1^2~110 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=76a340255976459004494c7177a29a3773e047d6;p=karo-tx-linux.git checkpatch: fix up complex macros context format Fix a missing newline and correctly use the raw context for the complex macro report. Signed-off-by: Andy Whitcroft Cc: Joe Perches Signed-off-by: Andrew Morton --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 20de4fdbb96d..06e22caa5692 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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"); } } }