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.

44 lines
898 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. dbgmsg.h
  5. Abstract:
  6. Debug message macros and zones.
  7. Author:
  8. Scott Holden (sholden) 2/8/1999
  9. Revision History:
  10. --*/
  11. #if DBG
  12. extern int DbgSettings;
  13. #define DEBUGZONE(n) (DbgSettings & (0x00000001<<n))
  14. #define DEBUGMSG(dbgs,format) ((dbgs) ? DbgPrint format:0)
  15. #define DBG_INIT DEBUGZONE(0)
  16. #define DBG_NDIS_OPEN DEBUGZONE(1)
  17. #define DBG_NDIS_BIND DEBUGZONE(2)
  18. #define DBG_NDIS_TX DEBUGZONE(3)
  19. #define DBG_NDIS_RX DEBUGZONE(4)
  20. #define DBG_REF DEBUGZONE(28)
  21. #define DBG_VERBOSE DEBUGZONE(29)
  22. #define DBG_WARN DEBUGZONE(30)
  23. #define DBG_ERROR DEBUGZONE(31)
  24. #else
  25. #define DEBUGMSG(d,f) (0)
  26. #endif