qvm_logf_bounded()

Output a formatted string for a non-fatal and non-internal error, while using the message rate-limiting mechanism

Synopsis:

#include <qvm/outpipe.h>
void qvm_logf_bounded(const unsigned int attr,
                      const unsigned int rate,
                      uint64_t *const ptime,
                      const char *const fmt,
                      ...)

Arguments:

attr
The message-level attribute.
rate
The message output rate (in msg/minute).
ptime
User-provided state; this must be a pointer to global or static storage.
fmt
A pointer to a printf-like formatted string.
...
Optional arguments for the string referenced by fmt.

Description:

This function outputs a string formatted in printf() style to the outpipes defined in the configuration. It is similar to qvm_logf() but it uses the message rate-limiting mechanism. It is also intended for errors that are non-fatal and non-internal; for those other types of errors (QVM_OUTAL_FATAL or QVM_OUTAL_INTERNAL), use qvm_fatal() instead.