ql4_dbg.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * QLogic iSCSI HBA Driver
  3. * Copyright (c) 2003-2012 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_7 */
  15. /* #define QL_DEBUG_LEVEL_9 */
  16. #define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
  17. #if defined(QL_DEBUG)
  18. #define DEBUG(x) do {x;} while (0);
  19. #else
  20. #define DEBUG(x) do {} while (0);
  21. #endif
  22. #if defined(QL_DEBUG_LEVEL_2)
  23. #define DEBUG2(x) do {if(ql4xextended_error_logging == 2) x;} while (0);
  24. #define DEBUG2_3(x) do {x;} while (0);
  25. #else /* */
  26. #define DEBUG2(x) do {} while (0);
  27. #endif /* */
  28. #if defined(QL_DEBUG_LEVEL_3)
  29. #define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
  30. #else /* */
  31. #define DEBUG3(x) do {} while (0);
  32. #if !defined(QL_DEBUG_LEVEL_2)
  33. #define DEBUG2_3(x) do {} while (0);
  34. #endif /* */
  35. #endif /* */
  36. #if defined(QL_DEBUG_LEVEL_4)
  37. #define DEBUG4(x) do {x;} while (0);
  38. #else /* */
  39. #define DEBUG4(x) do {} while (0);
  40. #endif /* */
  41. #if defined(QL_DEBUG_LEVEL_5)
  42. #define DEBUG5(x) do {x;} while (0);
  43. #else /* */
  44. #define DEBUG5(x) do {} while (0);
  45. #endif /* */
  46. #if defined(QL_DEBUG_LEVEL_7)
  47. #define DEBUG7(x) do {x; } while (0)
  48. #else /* */
  49. #define DEBUG7(x) do {} while (0)
  50. #endif /* */
  51. #if defined(QL_DEBUG_LEVEL_9)
  52. #define DEBUG9(x) do {x;} while (0);
  53. #else /* */
  54. #define DEBUG9(x) do {} while (0);
  55. #endif /* */