2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2012 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_7 */
16 /* #define QL_DEBUG_LEVEL_9 */
18 #define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
20 #define DEBUG(x) do {x;} while (0);
22 #define DEBUG(x) do {} while (0);
25 #if defined(QL_DEBUG_LEVEL_2)
26 #define DEBUG2(x) do {if(ql4xextended_error_logging == 2) x;} while (0);
27 #define DEBUG2_3(x) do {x;} while (0);
29 #define DEBUG2(x) do {} while (0);
32 #if defined(QL_DEBUG_LEVEL_3)
33 #define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
35 #define DEBUG3(x) do {} while (0);
36 #if !defined(QL_DEBUG_LEVEL_2)
37 #define DEBUG2_3(x) do {} while (0);
40 #if defined(QL_DEBUG_LEVEL_4)
41 #define DEBUG4(x) do {x;} while (0);
43 #define DEBUG4(x) do {} while (0);
46 #if defined(QL_DEBUG_LEVEL_5)
47 #define DEBUG5(x) do {x;} while (0);
49 #define DEBUG5(x) do {} while (0);
52 #if defined(QL_DEBUG_LEVEL_7)
53 #define DEBUG7(x) do {x; } while (0)
55 #define DEBUG7(x) do {} while (0)
58 #if defined(QL_DEBUG_LEVEL_9)
59 #define DEBUG9(x) do {x;} while (0);
61 #define DEBUG9(x) do {} while (0);