coccinelle: put_device: Adjust a message construction
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 7 May 2019 09:20:48 +0000 (11:20 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 7 Jul 2019 17:25:59 +0000 (02:25 +0900)
The Linux coding style tolerates long string literals so that
the provided information can be easier found also by search tools
like grep.
Thus simplify a message construction in a SmPL rule by concatenating text
with two plus operators less.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/free/put_device.cocci

index c9f071b..3ebebc0 100644 (file)
@@ -42,11 +42,10 @@ p1 << search.p1;
 p2 << search.p2;
 @@
 
-coccilib.report.print_report(p2[0], "ERROR: missing put_device; "
-                             + "call of_find_device_by_node on line "
-                             + p1[0].line
-                             + ", but without a corresponding object release "
-                             + "within this function.")
+coccilib.report.print_report(p2[0],
+                             "ERROR: missing put_device; call of_find_device_by_node on line "
+                             + p1[0].line
+                             + ", but without a corresponding object release within this function.")
 
 @script:python depends on org@
 p1 << search.p1;