1
0
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:
Frantisek Sumsal 2023-12-25 11:43:02 +01:00
parent c988ef4cf4
commit 6688db4194

View File

@ -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);