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