Updated: October 28, 2024 |
Output a formatted string containing a vdev-specific message
#include <qvm/outpipe.h>
void vdev_logf(const unsigned int attr, const vdev_t *const vdp, const char *const fmt, ...)
This function outputs a string formatted in printf() style to the outpipes defined in the configuration, and indicates the specified vdev as the message source. It is 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.
If a vdev uses vdev_logf(), then its logging policy may be specified through the log option for this vdev, independently of the global logger option in the configuration for the VM.