coccinelle: ignore specific cases to use SYNTHETIC_ERRNO() macro

This commit is contained in:
Yu Watanabe 2020-11-27 08:47:26 +09:00
parent ba715423fe
commit 61c26ca87f
1 changed files with 6 additions and 0 deletions

View File

@ -15,9 +15,15 @@ log_debug("Found no default boot entry :(");
expression e;
expression list args;
@@
(
/* Ignore specific cases in src/import/{export,import,pull}.c where we want to return positive value on success. */
log_info("Exiting.");
return -r;
|
- log_info(args);
- return -e;
+ return log_info_errno(SYNTHETIC_ERRNO(e), args);
)
@@
expression e;
expression list args;