Enhance hax logger on Windows, and some cleanup. by coxuintel · Pull Request #215 · intel/haxm (original) (raw)
Copy link
Contributor
•
edited
Loading
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int hax_log_level(int level, const char *fmt, va_list arglist)
{
const char *prefix[] = {
"",
"haxm_debug: ", // HAX_LOGD
"haxm_info: ", // HAX_LOGI
"haxm_warning: ", // HAX_LOGW
"haxm_error: " // HAX_LOGE
};
if (level >= HAX_LOG_DEFAULT)
vDbgPrintExWithPrefix(prefix[level], DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, fmt, arglist);
return 0;
}