aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_dbg.h
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2006-06-23 19:11:05 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-06-26 17:24:07 -0400
commit744f11fdb1118c9306303529263e5ed09b463a0f (patch)
treed6a865da1e83cc9b892eaa328d1102e18e73f899 /drivers/scsi/qla2xxx/qla_dbg.h
parent7469059d52c5f762890cc060ef3f0452c097b91e (diff)
[SCSI] qla2xxx: Cleanup DEBUG macro usage.
- macro usage statements should terminate with a ';' - remove unused macros. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_dbg.h98
1 files changed, 43 insertions, 55 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h
index ace6afdfe708..2cea0097fbab 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.h
+++ b/drivers/scsi/qla2xxx/qla_dbg.h
@@ -37,122 +37,110 @@
37/* 37/*
38* Macros use for debugging the driver. 38* Macros use for debugging the driver.
39*/ 39*/
40#undef ENTER_TRACE
41#if defined(ENTER_TRACE)
42#define ENTER(x) do { printk("qla2100 : Entering %s()\n", x); } while (0)
43#define LEAVE(x) do { printk("qla2100 : Leaving %s()\n", x); } while (0)
44#define ENTER_INTR(x) do { printk("qla2100 : Entering %s()\n", x); } while (0)
45#define LEAVE_INTR(x) do { printk("qla2100 : Leaving %s()\n", x); } while (0)
46#else
47#define ENTER(x) do {} while (0)
48#define LEAVE(x) do {} while (0)
49#define ENTER_INTR(x) do {} while (0)
50#define LEAVE_INTR(x) do {} while (0)
51#endif
52 40
53#if DEBUG_QLA2100 41#if DEBUG_QLA2100
54#define DEBUG(x) do {x;} while (0); 42#define DEBUG(x) do {x;} while (0)
55#else 43#else
56#define DEBUG(x) do {} while (0); 44#define DEBUG(x) do {} while (0)
57#endif 45#endif
58 46
59#if defined(QL_DEBUG_LEVEL_1) 47#if defined(QL_DEBUG_LEVEL_1)
60#define DEBUG1(x) do {x;} while (0); 48#define DEBUG1(x) do {x;} while (0)
61#else 49#else
62#define DEBUG1(x) do {} while (0); 50#define DEBUG1(x) do {} while (0)
63#endif 51#endif
64 52
65#if defined(QL_DEBUG_LEVEL_2) 53#if defined(QL_DEBUG_LEVEL_2)
66#define DEBUG2(x) do {x;} while (0); 54#define DEBUG2(x) do {x;} while (0)
67#define DEBUG2_3(x) do {x;} while (0); 55#define DEBUG2_3(x) do {x;} while (0)
68#define DEBUG2_3_11(x) do {x;} while (0); 56#define DEBUG2_3_11(x) do {x;} while (0)
69#define DEBUG2_9_10(x) do {x;} while (0); 57#define DEBUG2_9_10(x) do {x;} while (0)
70#define DEBUG2_11(x) do {x;} while (0); 58#define DEBUG2_11(x) do {x;} while (0)
71#define DEBUG2_13(x) do {x;} while (0); 59#define DEBUG2_13(x) do {x;} while (0)
72#else 60#else
73#define DEBUG2(x) do {} while (0); 61#define DEBUG2(x) do {} while (0)
74#endif 62#endif
75 63
76#if defined(QL_DEBUG_LEVEL_3) 64#if defined(QL_DEBUG_LEVEL_3)
77#define DEBUG3(x) do {x;} while (0); 65#define DEBUG3(x) do {x;} while (0)
78#define DEBUG2_3(x) do {x;} while (0); 66#define DEBUG2_3(x) do {x;} while (0)
79#define DEBUG2_3_11(x) do {x;} while (0); 67#define DEBUG2_3_11(x) do {x;} while (0)
80#define DEBUG3_11(x) do {x;} while (0); 68#define DEBUG3_11(x) do {x;} while (0)
81#else 69#else
82#define DEBUG3(x) do {} while (0); 70#define DEBUG3(x) do {} while (0)
83 #if !defined(QL_DEBUG_LEVEL_2) 71 #if !defined(QL_DEBUG_LEVEL_2)
84 #define DEBUG2_3(x) do {} while (0); 72 #define DEBUG2_3(x) do {} while (0)
85 #endif 73 #endif
86#endif 74#endif
87 75
88#if defined(QL_DEBUG_LEVEL_4) 76#if defined(QL_DEBUG_LEVEL_4)
89#define DEBUG4(x) do {x;} while (0); 77#define DEBUG4(x) do {x;} while (0)
90#else 78#else
91#define DEBUG4(x) do {} while (0); 79#define DEBUG4(x) do {} while (0)
92#endif 80#endif
93 81
94#if defined(QL_DEBUG_LEVEL_5) 82#if defined(QL_DEBUG_LEVEL_5)
95#define DEBUG5(x) do {x;} while (0); 83#define DEBUG5(x) do {x;} while (0)
96#else 84#else
97#define DEBUG5(x) do {} while (0); 85#define DEBUG5(x) do {} while (0)
98#endif 86#endif
99 87
100#if defined(QL_DEBUG_LEVEL_7) 88#if defined(QL_DEBUG_LEVEL_7)
101#define DEBUG7(x) do {x;} while (0); 89#define DEBUG7(x) do {x;} while (0)
102#else 90#else
103#define DEBUG7(x) do {} while (0); 91#define DEBUG7(x) do {} while (0)
104#endif 92#endif
105 93
106#if defined(QL_DEBUG_LEVEL_9) 94#if defined(QL_DEBUG_LEVEL_9)
107#define DEBUG9(x) do {x;} while (0); 95#define DEBUG9(x) do {x;} while (0)
108#define DEBUG9_10(x) do {x;} while (0); 96#define DEBUG9_10(x) do {x;} while (0)
109#define DEBUG2_9_10(x) do {x;} while (0); 97#define DEBUG2_9_10(x) do {x;} while (0)
110#else 98#else
111#define DEBUG9(x) do {} while (0); 99#define DEBUG9(x) do {} while (0)
112#endif 100#endif
113 101
114#if defined(QL_DEBUG_LEVEL_10) 102#if defined(QL_DEBUG_LEVEL_10)
115#define DEBUG10(x) do {x;} while (0); 103#define DEBUG10(x) do {x;} while (0)
116#define DEBUG2_9_10(x) do {x;} while (0); 104#define DEBUG2_9_10(x) do {x;} while (0)
117#define DEBUG9_10(x) do {x;} while (0); 105#define DEBUG9_10(x) do {x;} while (0)
118#else 106#else
119#define DEBUG10(x) do {} while (0); 107#define DEBUG10(x) do {} while (0)
120 #if !defined(DEBUG2_9_10) 108 #if !defined(DEBUG2_9_10)
121 #define DEBUG2_9_10(x) do {} while (0); 109 #define DEBUG2_9_10(x) do {} while (0)
122 #endif 110 #endif
123 #if !defined(DEBUG9_10) 111 #if !defined(DEBUG9_10)
124 #define DEBUG9_10(x) do {} while (0); 112 #define DEBUG9_10(x) do {} while (0)
125 #endif 113 #endif
126#endif 114#endif
127 115
128#if defined(QL_DEBUG_LEVEL_11) 116#if defined(QL_DEBUG_LEVEL_11)
129#define DEBUG11(x) do{x;} while(0); 117#define DEBUG11(x) do{x;} while(0)
130#if !defined(DEBUG2_11) 118#if !defined(DEBUG2_11)
131#define DEBUG2_11(x) do{x;} while(0); 119#define DEBUG2_11(x) do{x;} while(0)
132#endif 120#endif
133#if !defined(DEBUG2_3_11) 121#if !defined(DEBUG2_3_11)
134#define DEBUG2_3_11(x) do{x;} while(0); 122#define DEBUG2_3_11(x) do{x;} while(0)
135#endif 123#endif
136#if !defined(DEBUG3_11) 124#if !defined(DEBUG3_11)
137#define DEBUG3_11(x) do{x;} while(0); 125#define DEBUG3_11(x) do{x;} while(0)
138#endif 126#endif
139#else 127#else
140#define DEBUG11(x) do{} while(0); 128#define DEBUG11(x) do{} while(0)
141 #if !defined(QL_DEBUG_LEVEL_2) 129 #if !defined(QL_DEBUG_LEVEL_2)
142 #define DEBUG2_11(x) do{} while(0); 130 #define DEBUG2_11(x) do{} while(0)
143 #if !defined(QL_DEBUG_LEVEL_3) 131 #if !defined(QL_DEBUG_LEVEL_3)
144 #define DEBUG2_3_11(x) do{} while(0); 132 #define DEBUG2_3_11(x) do{} while(0)
145 #endif 133 #endif
146 #endif 134 #endif
147 #if !defined(QL_DEBUG_LEVEL_3) 135 #if !defined(QL_DEBUG_LEVEL_3)
148 #define DEBUG3_11(x) do{} while(0); 136 #define DEBUG3_11(x) do{} while(0)
149 #endif 137 #endif
150#endif 138#endif
151 139
152#if defined(QL_DEBUG_LEVEL_12) 140#if defined(QL_DEBUG_LEVEL_12)
153#define DEBUG12(x) do {x;} while (0); 141#define DEBUG12(x) do {x;} while (0)
154#else 142#else
155#define DEBUG12(x) do {} while (0); 143#define DEBUG12(x) do {} while (0)
156#endif 144#endif
157 145
158#if defined(QL_DEBUG_LEVEL_13) 146#if defined(QL_DEBUG_LEVEL_13)