From 6688db4194a83954f03ab952891aca5c483e63a3 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 25 Dec 2023 11:43:02 +0100 Subject: coccinelle: fix the log-json rule As it generated very questionable results. --- coccinelle/log-json.cocci | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coccinelle/log-json.cocci') 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); -- cgit v1.2.3