1
0
Fork 0

Update logging function to log in debug mode

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4142
This commit is contained in:
Peter Veenstra 2018-08-27 11:08:37 +00:00
parent 0463a8b907
commit 53b67e8871

View file

@ -94,7 +94,15 @@ public:
return clockRate;
}
void logerror(const char* msg, ...) {
void logerror(const char* format, ...) {
#if C_DEBUG
char buf[512*2];
va_list msg;
va_start(msg,format);
vsprintf(buf,format,msg);
va_end(msg);
LOG(LOG_MISC,LOG_NORMAL)("%s",buf);
#endif
}
static int tag() {