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.

37 lines
809 B

  1. /*****************************************************************************\
  2. * MODULE: debug.cxx
  3. *
  4. * Debugging routines. This is only linked in on DEBUG builds.
  5. *
  6. *
  7. * Copyright (C) 1996-1998 Microsoft Corporation.
  8. * Copyright (C) 1996-1998 Hewlett Packard Company.
  9. *
  10. * History:
  11. * 07-Oct-1996 HWP-Guys Initiated port from win95 to winNT
  12. *
  13. \*****************************************************************************/
  14. #ifdef DEBUG
  15. #include "libpriv.h"
  16. DWORD gdwDbgLevel = DBG_LEV_ALL;
  17. VOID CDECL DbgMsgOut(
  18. LPCTSTR lpszMsgFormat,
  19. ...)
  20. {
  21. va_list pvParms;
  22. TCHAR szMsgText[DBG_MAX_TEXT];
  23. va_start(pvParms, lpszMsgFormat);
  24. wvsprintf(szMsgText, lpszMsgFormat, pvParms);
  25. va_end(pvParms);
  26. lstrcat(szMsgText, g_szNewLine);
  27. OutputDebugString(szMsgText);
  28. }
  29. #endif