1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00
systemd/coccinelle/log-json.cocci
Frantisek Sumsal 6688db4194 coccinelle: fix the log-json rule
As it generated very questionable results.
2023-12-25 13:53:02 +01:00

9 lines
200 B
Plaintext

/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression e, v, flags;
expression list args;
@@
- json_log(v, flags, 0, args);
- return -e;
+ return json_log(v, flags, SYNTHETIC_ERRNO(e), args);