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.

51 lines
1.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: debugko.cxx
  3. *
  4. * Contains compile in routines that match the kernel debugger extensions
  5. *
  6. * Created: 16-jun-1995
  7. * Author: Andre Vachon [andreva]
  8. *
  9. * Copyright (c) 1990-1999 Microsoft Corporation
  10. \**************************************************************************/
  11. #include "precomp.hxx"
  12. #if DBG
  13. LONG gWarningLevel = 0;
  14. // DoWarning1 is for ASM functions to call at Warning Level 1
  15. VOID DoWarning1(PSZ psz)
  16. {
  17. if (1 <= gWarningLevel)
  18. {
  19. DbgPrint("DXG: ");
  20. DbgPrint(psz);
  21. DbgPrint("\n");
  22. }
  23. }
  24. VOID DoWarning(PSZ psz, LONG ulLevel)
  25. {
  26. if (ulLevel <= gWarningLevel)
  27. {
  28. DbgPrint("DXG: ");
  29. DbgPrint(psz);
  30. DbgPrint("\n");
  31. }
  32. }
  33. VOID DoRip(PSZ psz)
  34. {
  35. if (gWarningLevel >= 0)
  36. {
  37. DbgPrint("DXG Assertion: ");
  38. DbgPrint(psz);
  39. DbgPrint("\n");
  40. DbgBreakPoint();
  41. }
  42. }
  43. #endif