1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2@@
3identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
4local idexpression r;
5expression e;
6@@
7- r = -e;
8+ r =
9  log_LEVEL_errno(e, ...);
10@@
11identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
12local idexpression r;
13expression e;
14@@
15+ r =
16  log_LEVEL_errno(e, ...);
17- r = -e;
18@@
19identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
20local idexpression r;
21expression e;
22@@
23- r =
24+ return
25  log_LEVEL_errno(e, ...);
26- return r;
27@@
28identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
29local idexpression r;
30@@
31+ return
32  log_LEVEL_errno(r, ...);
33- return r;
34@@
35identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
36expression e;
37@@
38+ return
39  log_LEVEL_errno(e, ...);
40- return -e;
41@@
42identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
43expression list args;
44expression e;
45local idexpression r;
46@@
47- log_LEVEL_errno(e, args);
48- r = e;
49+ r = log_LEVEL_errno(e, args);
50@@
51identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning|error|emergency)_errno$";
52local idexpression r;
53expression e;
54expression u;
55@@
56- r = -e;
57+ r =
58  log_UNIT_LEVEL_errno(u, e, ...);
59@@
60identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning|error|emergency)_errno$";
61local idexpression r;
62expression e;
63expression u;
64@@
65+ r =
66  log_UNIT_LEVEL_errno(u, e, ...);
67- r = -e;
68@@
69identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning|error|emergency)_errno$";
70local idexpression r;
71expression e;
72expression u;
73@@
74- r =
75+ return
76  log_UNIT_LEVEL_errno(u, e, ...);
77- return r;
78@@
79identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning|error|emergency)_errno$";
80local idexpression r;
81expression u;
82@@
83+ return
84  log_UNIT_LEVEL_errno(u, r, ...);
85- return r;
86@@
87identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning|error|emergency)_errno$";
88expression e;
89expression u;
90@@
91+ return
92  log_UNIT_LEVEL_errno(u, e, ...);
93- return -e;
94@@
95identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning|error|emergency)_errno$";
96expression list args;
97expression e;
98expression u;
99local idexpression r;
100@@
101- log_UNIT_LEVEL_errno(u, e, args);
102- r = e;
103+ r = log_UNIT_LEVEL_errno(u, e, args);
104