Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30a70e80 authored by Markus Elfring's avatar Markus Elfring Committed by Masahiro Yamada
Browse files

coccinelle: put_device: Adjust a message construction



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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent a3b0b6f9
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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 "
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.")
                             + ", but without a corresponding object release within this function.")

@script:python depends on org@
p1 << search.p1;