diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-12-25 11:43:02 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-12-25 13:53:02 +0100 |
commit | 6688db4194a83954f03ab952891aca5c483e63a3 (patch) | |
tree | d802ad0caa6be3f7793e2eb26bb7ce6f8869395b | |
parent | coccinelle: rework how we run the Coccinelle transformations (diff) | |
download | systemd-6688db4194a83954f03ab952891aca5c483e63a3.tar.xz systemd-6688db4194a83954f03ab952891aca5c483e63a3.zip |
coccinelle: fix the log-json rule
As it generated very questionable results.
-rw-r--r-- | coccinelle/log-json.cocci | 3 |
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); |