Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygendebug.c
Go to the documentation of this file.
00001 /* Service debugging (simply logs to a file) */ 00002 00003 #include "audiosrv.h" 00004 00005 void logmsg(char* string, ...) 00006 { 00007 va_list args; 00008 00009 FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a"); 00010 00011 if (debug_file) 00012 { 00013 va_start(args, string); 00014 vfprintf(debug_file, string, args); 00015 va_end(args); 00016 fclose(debug_file); 00017 } 00018 else 00019 { 00020 char buf[256]; 00021 va_start(args, string); 00022 vsprintf(buf, string, args); 00023 OutputDebugStringA(buf); 00024 va_end(args); 00025 } 00026 } Generated on Sun May 27 2012 04:17:45 for ReactOS by
1.7.6.1
|