diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-19 18:47:06 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-19 18:59:00 +0100 |
commit | 0aa8730edc434acb0b05a93eb4fce6337a0047ee (patch) | |
tree | 8c2a00f2d5d78ae8fa2afe27a9692c3b0963eaaa /coccinelle | |
parent | tree-wide: use return value of log_xxx_errno() (diff) | |
download | systemd-0aa8730edc434acb0b05a93eb4fce6337a0047ee.tar.xz systemd-0aa8730edc434acb0b05a93eb4fce6337a0047ee.zip |
coccinelle: always use SYNTHETIC_ERRNO() macro
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/synthetic-errno.cocci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coccinelle/synthetic-errno.cocci b/coccinelle/synthetic-errno.cocci index 3ddb69cb4c..650c37e08b 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); |