Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
459 B

//
// debug.cpp
//
#include "private.h"
#include <stdio.h>
#include "debug.h"
namespace immif_debug {
void debug_printf(const char* fmt, ...)
{
char buff[512];
va_list arglist;
va_start(arglist, fmt);
_vsnprintf(buff, ARRAYSIZE(buff) - 1, fmt, arglist);
va_end(arglist);
buff[ARRAYSIZE(buff) - 1] = 0;
OutputDebugStringA("[ImmIf] ");
OutputDebugStringA(buff);
OutputDebugStringA("\n");
}
} // end of debug