vdev_logf()

Output a formatted string to the log

Synopsis:

#include <qvm/log.h>
void vdev_logf(qvm_log_level_t level,
               vdev_t const *vdp,
               char const *fmt,
               ...)

Arguments:

level
The message level, as one of the QL_CNF_* or QL_QVM_* constants.
vdp
A pointer to the virtual device requesting output.
fmt
The formatted string to output.
...
Optional arguments for the formatted string above.

Library:

Provided by qvm; no external library is required.

Description:

The vdev_logf() function outputs a printf()-like string to the logging output defined in the VM configuration. Unlike qvm_fatal(), vdev_logf() doesn't terminate the qvm process.

Page updated: