aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_dbg.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_dbg.h50
1 files changed, 7 insertions, 43 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h
index 2cea0097fbab..533425338e05 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.h
+++ b/drivers/scsi/qla2xxx/qla_dbg.h
@@ -38,11 +38,7 @@
38* Macros use for debugging the driver. 38* Macros use for debugging the driver.
39*/ 39*/
40 40
41#if DEBUG_QLA2100 41#define DEBUG(x) do { if (extended_error_logging) { x; } } while (0)
42#define DEBUG(x) do {x;} while (0)
43#else
44#define DEBUG(x) do {} while (0)
45#endif
46 42
47#if defined(QL_DEBUG_LEVEL_1) 43#if defined(QL_DEBUG_LEVEL_1)
48#define DEBUG1(x) do {x;} while (0) 44#define DEBUG1(x) do {x;} while (0)
@@ -50,27 +46,18 @@
50#define DEBUG1(x) do {} while (0) 46#define DEBUG1(x) do {} while (0)
51#endif 47#endif
52 48
53#if defined(QL_DEBUG_LEVEL_2) 49#define DEBUG2(x) do { if (extended_error_logging) { x; } } while (0)
54#define DEBUG2(x) do {x;} while (0) 50#define DEBUG2_3(x) do { if (extended_error_logging) { x; } } while (0)
55#define DEBUG2_3(x) do {x;} while (0) 51#define DEBUG2_3_11(x) do { if (extended_error_logging) { x; } } while (0)
56#define DEBUG2_3_11(x) do {x;} while (0) 52#define DEBUG2_9_10(x) do { if (extended_error_logging) { x; } } while (0)
57#define DEBUG2_9_10(x) do {x;} while (0) 53#define DEBUG2_11(x) do { if (extended_error_logging) { x; } } while (0)
58#define DEBUG2_11(x) do {x;} while (0) 54#define DEBUG2_13(x) do { if (extended_error_logging) { x; } } while (0)
59#define DEBUG2_13(x) do {x;} while (0)
60#else
61#define DEBUG2(x) do {} while (0)
62#endif
63 55
64#if defined(QL_DEBUG_LEVEL_3) 56#if defined(QL_DEBUG_LEVEL_3)
65#define DEBUG3(x) do {x;} while (0) 57#define DEBUG3(x) do {x;} while (0)
66#define DEBUG2_3(x) do {x;} while (0)
67#define DEBUG2_3_11(x) do {x;} while (0)
68#define DEBUG3_11(x) do {x;} while (0) 58#define DEBUG3_11(x) do {x;} while (0)
69#else 59#else
70#define DEBUG3(x) do {} while (0) 60#define DEBUG3(x) do {} while (0)
71 #if !defined(QL_DEBUG_LEVEL_2)
72 #define DEBUG2_3(x) do {} while (0)
73 #endif
74#endif 61#endif
75 62
76#if defined(QL_DEBUG_LEVEL_4) 63#if defined(QL_DEBUG_LEVEL_4)
@@ -94,20 +81,15 @@
94#if defined(QL_DEBUG_LEVEL_9) 81#if defined(QL_DEBUG_LEVEL_9)
95#define DEBUG9(x) do {x;} while (0) 82#define DEBUG9(x) do {x;} while (0)
96#define DEBUG9_10(x) do {x;} while (0) 83#define DEBUG9_10(x) do {x;} while (0)
97#define DEBUG2_9_10(x) do {x;} while (0)
98#else 84#else
99#define DEBUG9(x) do {} while (0) 85#define DEBUG9(x) do {} while (0)
100#endif 86#endif
101 87
102#if defined(QL_DEBUG_LEVEL_10) 88#if defined(QL_DEBUG_LEVEL_10)
103#define DEBUG10(x) do {x;} while (0) 89#define DEBUG10(x) do {x;} while (0)
104#define DEBUG2_9_10(x) do {x;} while (0)
105#define DEBUG9_10(x) do {x;} while (0) 90#define DEBUG9_10(x) do {x;} while (0)
106#else 91#else
107#define DEBUG10(x) do {} while (0) 92#define DEBUG10(x) do {} while (0)
108 #if !defined(DEBUG2_9_10)
109 #define DEBUG2_9_10(x) do {} while (0)
110 #endif
111 #if !defined(DEBUG9_10) 93 #if !defined(DEBUG9_10)
112 #define DEBUG9_10(x) do {} while (0) 94 #define DEBUG9_10(x) do {} while (0)
113 #endif 95 #endif
@@ -115,23 +97,11 @@
115 97
116#if defined(QL_DEBUG_LEVEL_11) 98#if defined(QL_DEBUG_LEVEL_11)
117#define DEBUG11(x) do{x;} while(0) 99#define DEBUG11(x) do{x;} while(0)
118#if !defined(DEBUG2_11)
119#define DEBUG2_11(x) do{x;} while(0)
120#endif
121#if !defined(DEBUG2_3_11)
122#define DEBUG2_3_11(x) do{x;} while(0)
123#endif
124#if !defined(DEBUG3_11) 100#if !defined(DEBUG3_11)
125#define DEBUG3_11(x) do{x;} while(0) 101#define DEBUG3_11(x) do{x;} while(0)
126#endif 102#endif
127#else 103#else
128#define DEBUG11(x) do{} while(0) 104#define DEBUG11(x) do{} while(0)
129 #if !defined(QL_DEBUG_LEVEL_2)
130 #define DEBUG2_11(x) do{} while(0)
131 #if !defined(QL_DEBUG_LEVEL_3)
132 #define DEBUG2_3_11(x) do{} while(0)
133 #endif
134 #endif
135 #if !defined(QL_DEBUG_LEVEL_3) 105 #if !defined(QL_DEBUG_LEVEL_3)
136 #define DEBUG3_11(x) do{} while(0) 106 #define DEBUG3_11(x) do{} while(0)
137 #endif 107 #endif
@@ -145,14 +115,8 @@
145 115
146#if defined(QL_DEBUG_LEVEL_13) 116#if defined(QL_DEBUG_LEVEL_13)
147#define DEBUG13(x) do {x;} while (0) 117#define DEBUG13(x) do {x;} while (0)
148#if !defined(DEBUG2_13)
149#define DEBUG2_13(x) do {x;} while(0)
150#endif
151#else 118#else
152#define DEBUG13(x) do {} while (0) 119#define DEBUG13(x) do {} while (0)
153#if !defined(QL_DEBUG_LEVEL_2)
154#define DEBUG2_13(x) do {} while(0)
155#endif
156#endif 120#endif
157 121
158#if defined(QL_DEBUG_LEVEL_14) 122#if defined(QL_DEBUG_LEVEL_14)