summaryrefslogtreecommitdiffstats
path: root/src/basic/log.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-02-15 02:49:49 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-02-15 10:16:33 +0100
commit4dcfdd210cf9ea8692f02f2406705120e28e428e (patch)
tree49729d85802f6dc045c61513e04dfed2741c37c7 /src/basic/log.h
parenttest: fix cleanup function (diff)
downloadsystemd-4dcfdd210cf9ea8692f02f2406705120e28e428e.tar.xz
systemd-4dcfdd210cf9ea8692f02f2406705120e28e428e.zip
log: reorder arguments of internal macro
To make the order matches with log_internal(). No functional change. Hopefully silence coverity issues like CID#1534478, CID#1534479, CID#1534480, CID#1534482.
Diffstat (limited to 'src/basic/log.h')
-rw-r--r--src/basic/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/log.h b/src/basic/log.h
index 140e501eb1..23f54b88fb 100644
--- a/src/basic/log.h
+++ b/src/basic/log.h
@@ -383,7 +383,7 @@ typedef struct LogRateLimit {
RateLimit ratelimit;
} LogRateLimit;
-#define log_ratelimit_internal(_level, _error, _ratelimit, _format, _file, _line, _func, ...) \
+#define log_ratelimit_internal(_level, _error, _ratelimit, _file, _line, _func, _format, ...) \
({ \
int _log_ratelimit_error = (_error); \
int _log_ratelimit_level = (_level); \
@@ -407,7 +407,7 @@ typedef struct LogRateLimit {
({ \
int _level = (level), _e = (error); \
_e = (log_get_max_level() >= LOG_PRI(_level)) \
- ? log_ratelimit_internal(_level, _e, _ratelimit, format, PROJECT_FILE, __LINE__, __func__, ##__VA_ARGS__) \
+ ? log_ratelimit_internal(_level, _e, _ratelimit, PROJECT_FILE, __LINE__, __func__, format, ##__VA_ARGS__) \
: -ERRNO_VALUE(_e); \
_e < 0 ? _e : -ESTRPIPE; \
})