ReactOS  0.4.15-dev-1070-ge1a01de
debug.c File Reference
#include "audiosrv.h"
#include <stdio.h>
Include dependency graph for debug.c:

Go to the source code of this file.


void logmsg (char *string,...)

Function Documentation

◆ logmsg()

void logmsg ( char string,

Definition at line 10 of file debug.c.

11 {
12  va_list args;
15  FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
17  if (debug_file)
18  {
19  va_start(args, string);
20  vfprintf(debug_file, string, args);
21  va_end(args);
22  fclose(debug_file);
23  }
24  else
25 #endif
26  {
27  char buf[256];
28  va_start(args, string);
29  vsprintf(buf, string, args);
31  va_end(args);
32  }
33 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define va_start(ap, A)
Definition: acmsvcex.h:91
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
#define args
Definition: format.c:66
void WINAPI SHIM_OBJ_NAME() OutputDebugStringA(LPCSTR lpOutputString)
Definition: ignoredbgout.c:18

Referenced by AppendAudioDeviceToList(), CreateAudioDeviceList(), CreateDeviceDescriptor(), DestroyAudioDeviceList(), ProcessExistingDevices(), RegisterForDeviceNotifications(), ServiceControlHandler(), ServiceMain(), StartAudioService(), StartSystemAudioServices(), WaitForService(), and wmain().