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. // SffDiskDebug 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 FAIL. 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 SFFDISKFAIL ((ULONG)0x00000001)
  27. #define SFFDISKWARN ((ULONG)0x00000002)
  28. #define SFFDISKINFO ((ULONG)0x00000004)
  29. #define SFFDISKSHOW ((ULONG)0x00000008)
  30. #define SFFDISKIRPPATH ((ULONG)0x00000010)
  31. #define SFFDISKFORMAT ((ULONG)0x00000020)
  32. #define SFFDISKSTATUS ((ULONG)0x00000040)
  33. #define SFFDISKPNP ((ULONG)0x00000080)
  34. #define SFFDISKIOCTL ((ULONG)0x00000100)
  35. #define SFFDISKRW ((ULONG)0x00000200)
  36. extern ULONG SffDiskDebugLevel;
  37. #define SffDiskDump(LEVEL,STRING) \
  38. do { \
  39. if (SffDiskDebugLevel & (LEVEL)) { \
  40. DbgPrint STRING; \
  41. } \
  42. } while (0)
  43. #else
  44. #define SffDiskDump(LEVEL,STRING) do {NOTHING;} while (0)
  45. #endif