1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

coccinelle: always use SYNTHETIC_ERRNO() macro

This commit is contained in:
Yu Watanabe
2020-11-20 02:47:06 +09:00
parent fed66db05d
commit 0aa8730edc

View 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);