]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coccinelle: fix the log-json rule
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 25 Dec 2023 10:43:02 +0000 (11:43 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 25 Dec 2023 12:53:02 +0000 (13:53 +0100)
As it generated very questionable results.

coccinelle/log-json.cocci

index d184e5658454efc01597d55d18ec26ea61aa6a6d..c941706c6417133e7e155a711614d175d61056a9 100644 (file)
@@ -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);