]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coccinelle: always use SYNTHETIC_ERRNO() macro
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Nov 2020 17:47:06 +0000 (02:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Nov 2020 17:59:00 +0000 (02:59 +0900)
coccinelle/synthetic-errno.cocci

index 3ddb69cb4cff498ab310f6ffd9eba2504eef6192..650c37e08be334a0d0070e125e5239ce605281b9 100644 (file)
@@ -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);