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.

59 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 - 1993 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. Author:
  7. Neil Sandlin (neilsa) 26-Apr-99
  8. Environment:
  9. Kernel mode only.
  10. Notes:
  11. --*/
  12. #if DBG
  13. //
  14. // For checked kernels, define a macro to print out informational
  15. // messages.
  16. //
  17. // MemCardDebug is normally 0. At compile-time or at run-time, it can be
  18. // set to some bit patter for increasingly detailed messages.
  19. //
  20. // Big, nasty errors are noted with DBGP. Errors that might be
  21. // recoverable are handled by the WARN bit. More information on
  22. // unusual but possibly normal happenings are handled by the INFO bit.
  23. // And finally, boring details such as routines entered and register
  24. // dumps are handled by the SHOW bit.
  25. //
  26. #define MEMCARDDBGP ((ULONG)0x00000001)
  27. #define MEMCARDWARN ((ULONG)0x00000002)
  28. #define MEMCARDINFO ((ULONG)0x00000004)
  29. #define MEMCARDSHOW ((ULONG)0x00000008)
  30. #define MEMCARDIRPPATH ((ULONG)0x00000010)
  31. #define MEMCARDFORMAT ((ULONG)0x00000020)
  32. #define MEMCARDSTATUS ((ULONG)0x00000040)
  33. #define MEMCARDPNP ((ULONG)0x00000080)
  34. #define MEMCARDIOCTL ((ULONG)0x00000100)
  35. #define MEMCARDRW ((ULONG)0x00000200)
  36. extern ULONG MemCardDebugLevel;
  37. #define MemCardDump(LEVEL,STRING) \
  38. do { \
  39. if (MemCardDebugLevel & (LEVEL)) { \
  40. DbgPrint STRING; \
  41. } \
  42. } while (0)
  43. #else
  44. #define MemCardDump(LEVEL,STRING) do {NOTHING;} while (0)
  45. #endif