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.

87 lines
1.9 KiB

  1. /*++
  2. Module Name:
  3. debug.h
  4. Abstract:
  5. Author:
  6. Sanjeev Katariya
  7. Environment:
  8. User mode
  9. Revision History:
  10. Serial # Author Date Changes
  11. -------- ------ ---- -------
  12. 1. SanjeevK 10/28 Original
  13. --*/
  14. //
  15. // Debug defines
  16. //
  17. // DEBUG MASK SUCCESS: 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
  18. // 1 X X X X X X X X X X X X X X X
  19. // DEBUG MASK FAILURE: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
  20. // 1 X X X X X X X X X X X X X X X
  21. #define DEBUG_F_INIT 0x8000UL
  22. #define DEBUG_F_CONNECT 0x8001UL
  23. #define DEBUG_F_ALL 0xFFFFUL
  24. #define DEBUG_S_INIT 0x80000000UL
  25. #define DEBUG_S_CONNECT 0x80010000UL
  26. #define DEBUG_S_ALL 0xFFFF0000UL
  27. #define DEBUG_ALL 0xFFFFFFFFUL
  28. //
  29. // Debug constants
  30. //
  31. #define DEBUG_NEWPAGE "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
  32. //
  33. // Debug Variables
  34. //
  35. #if DBG
  36. extern const ULONG cul_DebugMask;
  37. //
  38. // Debug Macros
  39. //
  40. #define DEBUG_MACRO_F_INIT if ( cul_DebugMask & DEBUG_F_INIT )
  41. #define DEBUG_MACRO_F_CONNECT if ( cul_DebugMask & DEBUG_F_CONNECT )
  42. #define DEBUG_MACRO_F_ALL if ( cul_DebugMask & DEBUG_F_ALL )
  43. #define DEBUG_MACRO_S_INIT if ( cul_DebugMask & DEBUG_S_INIT )
  44. #define DEBUG_MACRO_S_CONNECT if ( cul_DebugMask & DEBUG_S_CONNECT )
  45. #define DEBUG_MACRO_S_ALL if ( cul_DebugMask & DEBUG_S_ALL )
  46. #define DEBUG_MACRO_ALL if ( cul_DebugMask & DEBUG_ALL )
  47. #define DbgOut(a,b,c) DbgPrint( a, b, c )
  48. #else
  49. #define DEBUG_MACRO_F_INIT if ( FALSE )
  50. #define DEBUG_MACRO_F_CONNECT if ( FALSE )
  51. #define DEBUG_MACRO_F_ALL if ( FALSE )
  52. #define DEBUG_MACRO_S_INIT if ( FALSE )
  53. #define DEBUG_MACRO_S_CONNECT if ( FALSE )
  54. #define DEBUG_MACRO_S_ALL if ( FALSE )
  55. #define DEBUG_MACRO_ALL if ( FALSE )
  56. #define DbgOut(a,b)
  57. #endif