projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa83506
)
log: Add log_ratelimit_full()
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Fri, 21 Oct 2022 12:19:22 +0000
(14:19 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Thu, 10 Nov 2022 16:49:34 +0000
(17:49 +0100)
src/basic/log.h
patch
|
blob
|
history
diff --git
a/src/basic/log.h
b/src/basic/log.h
index 96fcc0fdafe620aa60b57f6db0c1c9cd820f741f..8a828c1d2d5e50b8325a1158ee2070ff5af756a0 100644
(file)
--- a/
src/basic/log.h
+++ b/
src/basic/log.h
@@
-406,3
+406,6
@@
typedef struct LogRateLimit {
: -ERRNO_VALUE(_e); \
_e < 0 ? _e : -ESTRPIPE; \
})
+
+#define log_ratelimit_full(level, format, ...) \
+ log_ratelimit_full_errno(level, 0, format, ##__VA_ARGS__)