X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_complain.h;h=e93d823e2ae8a52cb30cb15ff4be67c57308a184;hb=068ae14b916aa298995433da83302032c5e57c76;hp=56e74eabac3400d729df19d80ed7636157ede56b;hpb=c28bc580c110c78741d0805c7652e05d994b0ff4;p=collectd.git diff --git a/src/utils_complain.h b/src/utils_complain.h index 56e74eab..e93d823e 100644 --- a/src/utils_complain.h +++ b/src/utils_complain.h @@ -83,7 +83,12 @@ void c_complain_once (int level, c_complain_t *c, const char *format, ...); * * See `c_complain' for a description of the parameters. */ -void c_release (int level, c_complain_t *c, const char *format, ...); +void c_do_release (int level, c_complain_t *c, const char *format, ...); +#define c_release(level, c, ...) \ + do { \ + if ((c)->interval != 0) \ + c_do_release(level, c, __VA_ARGS__); \ + } while (0) #endif /* UTILS_COMPLAIN_H */