drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / scsi / qla4xxx / ql4_dbg.h
blob171c89165009803b93c734e3f9a80046764def20
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * QLogic iSCSI HBA Driver
4 * Copyright (c) 2003-2012 QLogic Corporation
5 */
7 /*
8 * Driver debug definitions.
9 */
10 /* #define QL_DEBUG */ /* DEBUG messages */
11 /* #define QL_DEBUG_LEVEL_3 */ /* Output function tracing */
12 /* #define QL_DEBUG_LEVEL_4 */
13 /* #define QL_DEBUG_LEVEL_5 */
14 /* #define QL_DEBUG_LEVEL_7 */
15 /* #define QL_DEBUG_LEVEL_9 */
17 #define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
18 #if defined(QL_DEBUG)
19 #define DEBUG(x) do {x;} while (0);
20 #else
21 #define DEBUG(x) do {} while (0);
22 #endif
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);
27 #else /* */
28 #define DEBUG2(x) do {} while (0);
29 #endif /* */
31 #if defined(QL_DEBUG_LEVEL_3)
32 #define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
33 #else /* */
34 #define DEBUG3(x) do {} while (0);
35 #if !defined(QL_DEBUG_LEVEL_2)
36 #define DEBUG2_3(x) do {} while (0);
37 #endif /* */
38 #endif /* */
39 #if defined(QL_DEBUG_LEVEL_4)
40 #define DEBUG4(x) do {x;} while (0);
41 #else /* */
42 #define DEBUG4(x) do {} while (0);
43 #endif /* */
45 #if defined(QL_DEBUG_LEVEL_5)
46 #define DEBUG5(x) do {x;} while (0);
47 #else /* */
48 #define DEBUG5(x) do {} while (0);
49 #endif /* */
51 #if defined(QL_DEBUG_LEVEL_7)
52 #define DEBUG7(x) do {x; } while (0)
53 #else /* */
54 #define DEBUG7(x) do {} while (0)
55 #endif /* */
57 #if defined(QL_DEBUG_LEVEL_9)
58 #define DEBUG9(x) do {x;} while (0);
59 #else /* */
60 #define DEBUG9(x) do {} while (0);
61 #endif /* */