summaryrefslogtreecommitdiffstats
path: root/coccinelle/log-json.cocci
blob: c941706c6417133e7e155a711614d175d61056a9 (plain)
1
2
3
4
5
6
7
8
/* 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);