Source code of Windows XP (NT5)
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.

43 lines
492 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. debug.cpp
  5. Abstract:
  6. SIS Groveler debug print file
  7. Authors:
  8. John Douceur, 1998
  9. Cedric Krumbein, 1998
  10. Environment:
  11. User Mode
  12. Revision History:
  13. --*/
  14. #include "all.hxx"
  15. #if DBG
  16. INT __cdecl PrintDebugMsg(
  17. TCHAR *format,
  18. ...)
  19. {
  20. TCHAR debugStr[1024];
  21. va_list ap;
  22. va_start(ap, format);
  23. INT result = _vstprintf(debugStr, format, ap);
  24. OutputDebugString(debugStr);
  25. va_end(ap);
  26. return result;
  27. }
  28. #endif // DBG