Merge r55012 adding Wine3D control panel as per Amine's request.
[reactos.git] / base / services / audiosrv / debug.c
1 /* Service debugging (simply logs to a file) */
2
3 #include "audiosrv.h"
4
5 void logmsg(char* string, ...)
6 {
7 va_list args;
8
9 FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
10
11 if (debug_file)
12 {
13 va_start(args, string);
14 vfprintf(debug_file, string, args);
15 va_end(args);
16 fclose(debug_file);
17 }
18 else
19 {
20 char buf[256];
21 va_start(args, string);
22 vsprintf(buf, string, args);
23 OutputDebugStringA(buf);
24 va_end(args);
25 }
26 }