summaryrefslogtreecommitdiffstats
path: root/coccinelle/log-json.cocci
blob: 3730fd6ea33b1483e2ebea20decba6393db833d0 (plain)
1
2
3
4
5
6
7
8
@@
expression e, v, flags;
expression list args;
@@
+ return
- json_log(v, flags, 0, args);
+ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
- return -e;