From: Yu Watanabe Date: Thu, 19 Nov 2020 17:47:06 +0000 (+0900) Subject: coccinelle: always use SYNTHETIC_ERRNO() macro X-Git-Tag: v247~30^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0aa8730edc434acb0b05a93eb4fce6337a0047ee;p=thirdparty%2Fsystemd.git coccinelle: always use SYNTHETIC_ERRNO() macro --- diff --git a/coccinelle/synthetic-errno.cocci b/coccinelle/synthetic-errno.cocci index 3ddb69cb4cf..650c37e08be 100644 --- a/coccinelle/synthetic-errno.cocci +++ b/coccinelle/synthetic-errno.cocci @@ -44,5 +44,5 @@ identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_ identifier ERRNO =~ "^E[A-Z]+$"; expression list args; @@ -- return log_LEVEL_errno(ERRNO, args); -+ return log_LEVEL_errno(SYNTHETIC_ERRNO(ERRNO), args); +- log_LEVEL_errno(ERRNO, args); ++ log_LEVEL_errno(SYNTHETIC_ERRNO(ERRNO), args);