#include <pthread.h>
#include "os.hpp"
-#include "log.hpp"
+#include "trace_write.hpp"
namespace OS {
}
void
-DebugMessage(const char *message)
+DebugMessage(const char *format, ...)
{
+ va_list ap;
+ va_start(ap, format);
fflush(stdout);
- fputs(message, stderr);
+ vfprintf(stderr, format, ap);
+ va_end(ap);
}
void
static void _uninit(void) __attribute__((destructor));
static void _uninit(void) {
- Log::Close();
+ Trace::Close();
}