mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
coccinelle: additional errno.cocci hunk
rewrites: log_error_errno(errno, ...); return -errno; into: return log_error_errno(errno, ...);
This commit is contained in:
parent
351825cc73
commit
b3e3bb19a0
@ -23,3 +23,10 @@ expression e;
|
|||||||
+ return
|
+ return
|
||||||
log_LEVEL_errno(e, ...);
|
log_LEVEL_errno(e, ...);
|
||||||
- return r;
|
- return r;
|
||||||
|
@@
|
||||||
|
identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
|
||||||
|
expression e;
|
||||||
|
@@
|
||||||
|
+ return
|
||||||
|
log_LEVEL_errno(e, ...);
|
||||||
|
- return -e;
|
||||||
|
Loading…
Reference in New Issue
Block a user