From: Andy Whitcroft Date: Fri, 2 Dec 2011 03:12:42 +0000 (+1100) Subject: checkpatch: fix up complex macros context format X-Git-Tag: next-20111202~2^2~102 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a916ad072ab2f86a2644130e15144df264c597d0;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"); } } }