Skip to content

Commit

Permalink
coccinelle: put_device: Adjust a message construction
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
elfring authored and masahir0y committed Jul 7, 2019
1 parent a3b0b6f commit 30a70e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/coccinelle/free/put_device.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 30a70e8

Please sign in to comment.