logging.cpp: trivial changes

This commit is contained in:
Frode Solheim 2015-09-05 10:44:57 +02:00
parent 76a21cf6ab
commit 82e1de7210

View File

@ -2,13 +2,10 @@
#include <stdio.h>
#include <stdarg.h>
//UAEAPI void UAECALL uae_log(const char *format, ...)
void UAECALL uae_log(const char *format, ...)
{
char buffer[1000];
va_list ap;
va_start(ap, format);
vsnprintf(buffer, 1000, format, ap);
write_log("%s", buffer);
va_end(ap);
/* Redirect UAE_LOG_VA_ARGS_FULL to use write_log instead */
#define uae_log write_log
UAE_LOG_VA_ARGS_FULL(format);
#undef uae_log
}