vdev_logf()
Output a formatted string containing a vdev-specific message
Synopsis:
#include <qvm/outpipe.h>void vdev_logf(const unsigned int attr,
const vdev_t *const vdp,
const char *const fmt,
...)Arguments:
- attr
- The message-level attribute.
- vdp
- A pointer to a structure representing the vdev requesting output.
- 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, 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.
Page updated:
