mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
coccinelle: fix the log-json rule
As it generated very questionable results.
This commit is contained in:
parent
c988ef4cf4
commit
6688db4194
@ -3,7 +3,6 @@
|
|||||||
expression e, v, flags;
|
expression e, v, flags;
|
||||||
expression list args;
|
expression list args;
|
||||||
@@
|
@@
|
||||||
+ return
|
|
||||||
- json_log(v, flags, 0, args);
|
- json_log(v, flags, 0, args);
|
||||||
+ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
|
|
||||||
- return -e;
|
- return -e;
|
||||||
|
+ return json_log(v, flags, SYNTHETIC_ERRNO(e), args);
|
||||||
|
Loading…
Reference in New Issue
Block a user