Output a formatted string while using the message rate-limiting mechanism
Synopsis:
#include <qvm/outpipe.h>
void qvm_outfrl(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 point to be zero and have global 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_outf() but it uses the message rate-limiting mechanism.
Note: This function is deprecated and will be removed soon; use qvm_fatal() for QVM_OUTAL_FATAL or QVM_OUTAL_INTERNAL errors and qvm_logf_bounded() for other severity levels instead.