mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 02:57:16 +03:00
94c156cd45
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;
|