mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Lennart Poettering](/assets/img/avatar_default.png)
The previous coccinelle semantic patch that improved usage of log_error_errno()'s return value, only looked for log_error_errno() invocations with a single parameter after the error parameter. Update the patch to handle arbitrary numbers of additional arguments.
49 lines
618 B
Plaintext
49 lines
618 B
Plaintext
@@
|
|
identifier r;
|
|
expression e;
|
|
@@
|
|
- r = -e;
|
|
- log_error_errno(e,
|
|
+ r = log_error_errno(e,
|
|
...);
|
|
@@
|
|
identifier r;
|
|
expression e;
|
|
@@
|
|
- log_error_errno(e,
|
|
+ r = log_error_errno(e,
|
|
...);
|
|
- r = -e;
|
|
@@
|
|
identifier r;
|
|
expression e;
|
|
@@
|
|
- r = log_error_errno(e,
|
|
+ return log_error_errno(e,
|
|
...);
|
|
- return r;
|
|
@@
|
|
identifier r;
|
|
expression e;
|
|
@@
|
|
- r = -e;
|
|
- log_warning_errno(e,
|
|
+ r = log_warning_errno(e,
|
|
...);
|
|
@@
|
|
identifier r;
|
|
expression e;
|
|
@@
|
|
- log_warning_errno(e,
|
|
+ r = log_warning_errno(e,
|
|
...);
|
|
- r = -e;
|
|
@@
|
|
identifier r;
|
|
expression e;
|
|
@@
|
|
- r = log_warning_errno(e,
|
|
+ return log_warning_errno(e,
|
|
...);
|
|
- return r;
|