diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-10-21 14:19:22 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-11-10 17:49:34 +0100 |
commit | 7a2ec6d0bff3f8013e3c9e0b5babb31ef9857fab (patch) | |
tree | d87cb693b0e8338bbf2e3e340bfd029f69e55a75 /src/basic/log.h | |
parent | log: Use ##__VA_ARGS__ in ratelimit log macros (diff) | |
download | systemd-7a2ec6d0bff3f8013e3c9e0b5babb31ef9857fab.tar.xz systemd-7a2ec6d0bff3f8013e3c9e0b5babb31ef9857fab.zip |
log: Add log_ratelimit_full()
Diffstat (limited to 'src/basic/log.h')
-rw-r--r-- | src/basic/log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/log.h b/src/basic/log.h index 96fcc0fdaf..8a828c1d2d 100644 --- 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__) |