From: Frantisek Sumsal Date: Mon, 25 Dec 2023 10:43:02 +0000 (+0100) Subject: coccinelle: fix the log-json rule X-Git-Tag: v256-rc1~1384^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6688db4194a83954f03ab952891aca5c483e63a3;p=thirdparty%2Fsystemd.git coccinelle: fix the log-json rule As it generated very questionable results. --- diff --git a/coccinelle/log-json.cocci b/coccinelle/log-json.cocci index d184e565845..c941706c641 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);