ql4_dbg.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * QLogic iSCSI HBA Driver
  3. * Copyright (c) 2003-2010 QLogic Corporation
  4. *
  5. * See LICENSE.qla4xxx for copyright and licensing details.
  6. */
  7. /*
  8. * Driver debug definitions.
  9. */
  10. /* #define QL_DEBUG */ /* DEBUG messages */
  11. /* #define QL_DEBUG_LEVEL_3 */ /* Output function tracing */
  12. /* #define QL_DEBUG_LEVEL_4 */
  13. /* #define QL_DEBUG_LEVEL_5 */
  14. /* #define QL_DEBUG_LEVEL_9 */
  15. #define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
  16. #if defined(QL_DEBUG)
  17. #define DEBUG(x) do {x;} while (0);
  18. #else
  19. #define DEBUG(x) do {} while (0);
  20. #endif
  21. #if defined(QL_DEBUG_LEVEL_2)
  22. #define DEBUG2(x) do {if(ql4xextended_error_logging == 2) x;} while (0);
  23. #define DEBUG2_3(x) do {x;} while (0);
  24. #else /* */
  25. #define DEBUG2(x) do {} while (0);
  26. #endif /* */
  27. #if defined(QL_DEBUG_LEVEL_3)
  28. #define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
  29. #else /* */
  30. #define DEBUG3(x) do {} while (0);
  31. #if !defined(QL_DEBUG_LEVEL_2)
  32. #define DEBUG2_3(x) do {} while (0);
  33. #endif /* */
  34. #endif /* */
  35. #if defined(QL_DEBUG_LEVEL_4)
  36. #define DEBUG4(x) do {x;} while (0);
  37. #else /* */
  38. #define DEBUG4(x) do {} while (0);
  39. #endif /* */
  40. #if defined(QL_DEBUG_LEVEL_5)
  41. #define DEBUG5(x) do {x;} while (0);
  42. #else /* */
  43. #define DEBUG5(x) do {} while (0);
  44. #endif /* */
  45. #if defined(QL_DEBUG_LEVEL_9)
  46. #define DEBUG9(x) do {x;} while (0);
  47. #else /* */
  48. #define DEBUG9(x) do {} while (0);
  49. #endif /* */