blob: 51c365bcf912f50fdf97e44f453f2142b55a67ea [file] [log] [blame]
David Somayajuluafaf5a22006-09-19 10:28:00 -07001/*
2 * QLogic iSCSI HBA Driver
Vikas Chaudharyc68cdbf2012-08-22 07:55:09 -04003 * Copyright (c) 2003-2012 QLogic Corporation
David Somayajuluafaf5a22006-09-19 10:28:00 -07004 *
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
7
8/*
9 * Driver debug definitions.
10 */
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 */
Vikas Chaudhary33338e32013-03-07 05:43:12 -050015/* #define QL_DEBUG_LEVEL_7 */
David Somayajuluafaf5a22006-09-19 10:28:00 -070016/* #define QL_DEBUG_LEVEL_9 */
17
18#define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
19#if defined(QL_DEBUG)
20#define DEBUG(x) do {x;} while (0);
21#else
22#define DEBUG(x) do {} while (0);
23#endif
24
25#if defined(QL_DEBUG_LEVEL_2)
Andrew Vasquez11010fe2006-10-06 09:54:59 -070026#define DEBUG2(x) do {if(ql4xextended_error_logging == 2) x;} while (0);
David Somayajuluafaf5a22006-09-19 10:28:00 -070027#define DEBUG2_3(x) do {x;} while (0);
28#else /* */
29#define DEBUG2(x) do {} while (0);
30#endif /* */
31
32#if defined(QL_DEBUG_LEVEL_3)
Andrew Vasquez11010fe2006-10-06 09:54:59 -070033#define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
David Somayajuluafaf5a22006-09-19 10:28:00 -070034#else /* */
35#define DEBUG3(x) do {} while (0);
36#if !defined(QL_DEBUG_LEVEL_2)
37#define DEBUG2_3(x) do {} while (0);
38#endif /* */
39#endif /* */
40#if defined(QL_DEBUG_LEVEL_4)
41#define DEBUG4(x) do {x;} while (0);
42#else /* */
43#define DEBUG4(x) do {} while (0);
44#endif /* */
45
46#if defined(QL_DEBUG_LEVEL_5)
47#define DEBUG5(x) do {x;} while (0);
48#else /* */
49#define DEBUG5(x) do {} while (0);
50#endif /* */
51
Vikas Chaudhary33338e32013-03-07 05:43:12 -050052#if defined(QL_DEBUG_LEVEL_7)
53#define DEBUG7(x) do {x; } while (0)
54#else /* */
55#define DEBUG7(x) do {} while (0)
56#endif /* */
57
David Somayajuluafaf5a22006-09-19 10:28:00 -070058#if defined(QL_DEBUG_LEVEL_9)
59#define DEBUG9(x) do {x;} while (0);
60#else /* */
61#define DEBUG9(x) do {} while (0);
62#endif /* */