2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2006 QLogic Corporation
5 * See LICENSE.qla4xxx for copyright and licensing details.
9 * Driver debug definitions.
11 /* #define QL_DEBUG */ /* DEBUG messages */
12 /* #define QL_DEBUG_LEVEL_3 */ /* Output function tracing */
13 /* #define QL_DEBUG_LEVEL_4 */
14 /* #define QL_DEBUG_LEVEL_5 */
15 /* #define QL_DEBUG_LEVEL_9 */
17 #define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
19 #define DEBUG(x) do {x;} while (0);
21 #define DEBUG(x) do {} while (0);
24 #if defined(QL_DEBUG_LEVEL_2)
25 #define DEBUG2(x) do {if(ql4xextended_error_logging == 2) x;} while (0);
26 #define DEBUG2_3(x) do {x;} while (0);
28 #define DEBUG2(x) do {} while (0);
31 #if defined(QL_DEBUG_LEVEL_3)
32 #define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
34 #define DEBUG3(x) do {} while (0);
35 #if !defined(QL_DEBUG_LEVEL_2)
36 #define DEBUG2_3(x) do {} while (0);
39 #if defined(QL_DEBUG_LEVEL_4)
40 #define DEBUG4(x) do {x;} while (0);
42 #define DEBUG4(x) do {} while (0);
45 #if defined(QL_DEBUG_LEVEL_5)
46 #define DEBUG5(x) do {x;} while (0);
48 #define DEBUG5(x) do {} while (0);
51 #if defined(QL_DEBUG_LEVEL_9)
52 #define DEBUG9(x) do {x;} while (0);
54 #define DEBUG9(x) do {} while (0);