757 B
757 B
logger.h
Functionalities to write logs to QEMU's serial port.
DEBUG(string, ...)
- macro
calls log
with log_level Debug.
Puts filename and line number in front of the format text.
log_level_E
- enum
- None - Logs just the message without a prefix
- Info - General information, that could be useful
- Debug - Should only be used to find bugs and removed (or commented out) after the bug is found
- Warning - Used for warnings and not important errors
- Error - Used for Fatal Errors / Will be printed to the screen (graphics driver is not Implemented yet)
log(log_level, string, ...)
- function (void)
Logs the given string to QEMU's log port, the string is prefixed with the log type. Format strings are supported.