summaryrefslogtreecommitdiffstats
path: root/coccinelle/log-json.cocci
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-12-25 11:43:02 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-12-25 13:53:02 +0100
commit6688db4194a83954f03ab952891aca5c483e63a3 (patch)
treed802ad0caa6be3f7793e2eb26bb7ce6f8869395b /coccinelle/log-json.cocci
parentcoccinelle: rework how we run the Coccinelle transformations (diff)
downloadsystemd-6688db4194a83954f03ab952891aca5c483e63a3.tar.xz
systemd-6688db4194a83954f03ab952891aca5c483e63a3.zip
coccinelle: fix the log-json rule
As it generated very questionable results.
Diffstat (limited to 'coccinelle/log-json.cocci')
-rw-r--r--coccinelle/log-json.cocci3
1 files changed, 1 insertions, 2 deletions
diff --git a/coccinelle/log-json.cocci b/coccinelle/log-json.cocci
index d184e56584..c941706c64 100644
--- a/coccinelle/log-json.cocci
+++ b/coccinelle/log-json.cocci
@@ -3,7 +3,6 @@
expression e, v, flags;
expression list args;
@@
-+ return
- json_log(v, flags, 0, args);
-+ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
- return -e;
++ return json_log(v, flags, SYNTHETIC_ERRNO(e), args);