From e98f1386674a221420f7ed7a252b747a6879f8a2 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Fri, 16 Dec 2011 15:50:16 +1100 Subject: [PATCH] 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 --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } } } -- 2.39.5