2020-09-08 20:34:47 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2006-09-20 01:28:00 +08:00
|
|
|
/*
|
|
|
|
* QLogic iSCSI HBA Driver
|
2012-08-22 19:55:09 +08:00
|
|
|
* Copyright (c) 2003-2012 QLogic Corporation
|
2006-09-20 01:28:00 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Driver debug definitions.
|
|
|
|
*/
|
|
|
|
/* #define QL_DEBUG */ /* DEBUG messages */
|
|
|
|
/* #define QL_DEBUG_LEVEL_3 */ /* Output function tracing */
|
|
|
|
/* #define QL_DEBUG_LEVEL_4 */
|
|
|
|
/* #define QL_DEBUG_LEVEL_5 */
|
2013-03-07 18:43:12 +08:00
|
|
|
/* #define QL_DEBUG_LEVEL_7 */
|
2006-09-20 01:28:00 +08:00
|
|
|
/* #define QL_DEBUG_LEVEL_9 */
|
|
|
|
|
|
|
|
#define QL_DEBUG_LEVEL_2 /* ALways enable error messagess */
|
|
|
|
#if defined(QL_DEBUG)
|
|
|
|
#define DEBUG(x) do {x;} while (0);
|
|
|
|
#else
|
|
|
|
#define DEBUG(x) do {} while (0);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(QL_DEBUG_LEVEL_2)
|
2006-10-07 00:54:59 +08:00
|
|
|
#define DEBUG2(x) do {if(ql4xextended_error_logging == 2) x;} while (0);
|
2006-09-20 01:28:00 +08:00
|
|
|
#define DEBUG2_3(x) do {x;} while (0);
|
|
|
|
#else /* */
|
|
|
|
#define DEBUG2(x) do {} while (0);
|
|
|
|
#endif /* */
|
|
|
|
|
|
|
|
#if defined(QL_DEBUG_LEVEL_3)
|
2006-10-07 00:54:59 +08:00
|
|
|
#define DEBUG3(x) do {if(ql4xextended_error_logging == 3) x;} while (0);
|
2006-09-20 01:28:00 +08:00
|
|
|
#else /* */
|
|
|
|
#define DEBUG3(x) do {} while (0);
|
|
|
|
#if !defined(QL_DEBUG_LEVEL_2)
|
|
|
|
#define DEBUG2_3(x) do {} while (0);
|
|
|
|
#endif /* */
|
|
|
|
#endif /* */
|
|
|
|
#if defined(QL_DEBUG_LEVEL_4)
|
|
|
|
#define DEBUG4(x) do {x;} while (0);
|
|
|
|
#else /* */
|
|
|
|
#define DEBUG4(x) do {} while (0);
|
|
|
|
#endif /* */
|
|
|
|
|
|
|
|
#if defined(QL_DEBUG_LEVEL_5)
|
|
|
|
#define DEBUG5(x) do {x;} while (0);
|
|
|
|
#else /* */
|
|
|
|
#define DEBUG5(x) do {} while (0);
|
|
|
|
#endif /* */
|
|
|
|
|
2013-03-07 18:43:12 +08:00
|
|
|
#if defined(QL_DEBUG_LEVEL_7)
|
|
|
|
#define DEBUG7(x) do {x; } while (0)
|
|
|
|
#else /* */
|
|
|
|
#define DEBUG7(x) do {} while (0)
|
|
|
|
#endif /* */
|
|
|
|
|
2006-09-20 01:28:00 +08:00
|
|
|
#if defined(QL_DEBUG_LEVEL_9)
|
|
|
|
#define DEBUG9(x) do {x;} while (0);
|
|
|
|
#else /* */
|
|
|
|
#define DEBUG9(x) do {} while (0);
|
|
|
|
#endif /* */
|