linux/drivers/scsi/qla4xxx/ql4_dbg.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * QLogic iSCSI HBA Driver
 * Copyright (c)  2003-2012 QLogic Corporation
 */

/*
 * 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  */
/* #define QL_DEBUG_LEVEL_7  */
/* #define QL_DEBUG_LEVEL_9  */

#define QL_DEBUG_LEVEL_2
#if defined(QL_DEBUG)
#define DEBUG
#else
#define DEBUG(x)
#endif

#if defined(QL_DEBUG_LEVEL_2)
#define DEBUG2(x)
#define DEBUG2_3(x)
#else				/*  */
#define DEBUG2
#endif				/*  */

#if defined(QL_DEBUG_LEVEL_3)
#define DEBUG3
#else				/*  */
#define DEBUG3(x)
#if !defined(QL_DEBUG_LEVEL_2)
#define DEBUG2_3
#endif				/*  */
#endif				/*  */
#if defined(QL_DEBUG_LEVEL_4)
#define DEBUG4
#else				/*  */
#define DEBUG4(x)
#endif				/*  */

#if defined(QL_DEBUG_LEVEL_5)
#define DEBUG5
#else				/*  */
#define DEBUG5(x)
#endif				/*  */

#if defined(QL_DEBUG_LEVEL_7)
#define DEBUG7
#else				/*  */
#define DEBUG7(x)
#endif				/*  */

#if defined(QL_DEBUG_LEVEL_9)
#define DEBUG9
#else				/*  */
#define DEBUG9(x)
#endif				/*  */