0
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-18 14:43:33 +08:00
systemd/coccinelle/log-json.cocci

9 lines
153 B
Plaintext
Raw Normal View History

2019-03-21 17:50:59 +08:00
@@
expression e, v, flags;
expression list args;
@@
+ return
- json_log(v, flags, 0, args);
+ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
- return -e;