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:
parent
0463a8b907
commit
53b67e8871
1 changed files with 9 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue