summaryrefslogtreecommitdiff
path: root/coccinelle/log-json.cocci
blob: d184e5658454efc01597d55d18ec26ea61aa6a6d (plain)
1
2
3
4
5
6
7
8
9
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression e, v, flags;
expression list args;
@@
+ return
- json_log(v, flags, 0, args);
+ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
- return -e;