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

  1. //
  2. // debug.cpp
  3. //
  4. #include "private.h"
  5. #include <stdio.h>
  6. #include "debug.h"
  7. namespace immif_debug {
  8. void debug_printf(const char* fmt, ...)
  9. {
  10. char buff[512];
  11. va_list arglist;
  12. va_start(arglist, fmt);
  13. _vsnprintf(buff, ARRAYSIZE(buff) - 1, fmt, arglist);
  14. va_end(arglist);
  15. buff[ARRAYSIZE(buff) - 1] = 0;
  16. OutputDebugStringA("[ImmIf] ");
  17. OutputDebugStringA(buff);
  18. OutputDebugStringA("\n");
  19. }
  20. } // end of debug