mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
coccinelle: fix the log-json rule
As it generated very questionable results.
This commit is contained in:
1 parent
c988ef4cf4
commit
6688db4194
1 file changed
+1
-2
@@ -3,7 +3,6 @@
|
||||
expression e, v, flags;
|
||||
expression list args;
|
||||
@@
|
||||
+ return
|
||||
- json_log(v, flags, 0, args);
|
||||
+ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
|
||||
- return -e;
|
||||
+ return json_log(v, flags, SYNTHETIC_ERRNO(e), args);
|
||||
Reference in new issue
Block a user