mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
coccinelle: ignore specific cases to use SYNTHETIC_ERRNO() macro
This commit is contained in:
parent
ba715423fe
commit
61c26ca87f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user