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.

42 lines
1004 B

  1. /*******************************************************************/
  2. /* Copyright(c) 1993 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: debug.h
  7. //
  8. // Description: Debug macros definitions
  9. //
  10. // Author: Stefan Solomon (stefans) October 4, 1993.
  11. //
  12. // Revision History:
  13. //
  14. //***
  15. #ifndef _IPXFLT_DEBUG_
  16. #define _IPXFLT_DEBUG_
  17. #if DBG
  18. extern ULONG DbgLevel;
  19. #define DBG_IOCTLS 0x00000001
  20. #define DBG_FWDIF 0x00000002
  21. #define DBG_IFHASH 0x00000010
  22. #define DBG_PKTCACHE 0x00000020
  23. #define DBG_PKTLOGS 0x00000100
  24. #define DBG_ERRORS 0x10000000
  25. #define DEF_DBG_LEVEL (DBG_IOCTLS|DBG_FWDIF|DBG_ERRORS|DBG_IFHASH)
  26. #define IpxFltDbgPrint(LEVEL,ARGS) \
  27. do { \
  28. if (DbgLevel & (LEVEL)) { \
  29. DbgPrint ARGS; \
  30. } \
  31. } while (0)
  32. #else
  33. #define IpxFltDbgPrint(LEVEL,ARGS) do {NOTHING;} while (0)
  34. #endif
  35. #endif