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
806 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
  9. *
  10. * History:
  11. * 07-Oct-1996 HWP-Guys Initiated port from win95 to winNT
  12. *
  13. \*****************************************************************************/
  14. #ifdef DEBUG
  15. #include <windows.h>
  16. #include "debug.h"
  17. DWORD gdwDbgLevel = DBG_LEV_ALL;
  18. VOID CDECL DbgMsgOut(
  19. LPCSTR lpszMsgFormat,
  20. ...)
  21. {
  22. char szMsgText[DBG_MAX_TEXT];
  23. wvsprintf(szMsgText,
  24. lpszMsgFormat,
  25. (LPSTR)(((LPSTR)(&lpszMsgFormat)) + sizeof(lpszMsgFormat)));
  26. lstrcat(szMsgText, "\n");
  27. OutputDebugString(szMsgText);
  28. }
  29. #endif