qvm_fatal()
Terminate the qvm process and output a fatal error message
Synopsis:
#include <qvm/log.h>void qvm_fatal(qvm_log_source_t src,
char const *fmt,
...)Arguments:
- src
- The message source, as one of the QLS_* constants.
- fmt
- A printf()-like formatted string.
- ...
- Optional arguments for the formatted string above.
Library:
Provided by qvm; no external library is required.
Description:
This function is used to fatally terminate the qvm process prior to the guest starting. This function outputs a printf()-like string to the logging output defined in the VM configuration just before terminating the process. If you want to simply output a log message without terminating the process, use vdev_logf() instead.
The qvm_fatal() function is labelled as noreturn for
avoiding warnings from static analysis tools; otherwise, they may complain about something
after the call as that something may be dereferenced.
Page updated:
