18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * QLogic iSCSI HBA Driver
48c2ecf20Sopenharmony_ci * Copyright (c)  2003-2012 QLogic Corporation
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/*
88c2ecf20Sopenharmony_ci * Driver debug definitions.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci/* #define QL_DEBUG  */			/* DEBUG messages */
118c2ecf20Sopenharmony_ci/* #define QL_DEBUG_LEVEL_3  */		/* Output function tracing */
128c2ecf20Sopenharmony_ci/* #define QL_DEBUG_LEVEL_4  */
138c2ecf20Sopenharmony_ci/* #define QL_DEBUG_LEVEL_5  */
148c2ecf20Sopenharmony_ci/* #define QL_DEBUG_LEVEL_7  */
158c2ecf20Sopenharmony_ci/* #define QL_DEBUG_LEVEL_9  */
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define QL_DEBUG_LEVEL_2	/* ALways enable error messagess */
188c2ecf20Sopenharmony_ci#if defined(QL_DEBUG)
198c2ecf20Sopenharmony_ci#define DEBUG(x)   do {x;} while (0);
208c2ecf20Sopenharmony_ci#else
218c2ecf20Sopenharmony_ci#define DEBUG(x)	do {} while (0);
228c2ecf20Sopenharmony_ci#endif
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#if defined(QL_DEBUG_LEVEL_2)
258c2ecf20Sopenharmony_ci#define DEBUG2(x)      do {if(ql4xextended_error_logging == 2) x;} while (0);
268c2ecf20Sopenharmony_ci#define DEBUG2_3(x)   do {x;} while (0);
278c2ecf20Sopenharmony_ci#else				/*  */
288c2ecf20Sopenharmony_ci#define DEBUG2(x)	do {} while (0);
298c2ecf20Sopenharmony_ci#endif				/*  */
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#if defined(QL_DEBUG_LEVEL_3)
328c2ecf20Sopenharmony_ci#define DEBUG3(x)      do {if(ql4xextended_error_logging == 3) x;} while (0);
338c2ecf20Sopenharmony_ci#else				/*  */
348c2ecf20Sopenharmony_ci#define DEBUG3(x)	do {} while (0);
358c2ecf20Sopenharmony_ci#if !defined(QL_DEBUG_LEVEL_2)
368c2ecf20Sopenharmony_ci#define DEBUG2_3(x)	do {} while (0);
378c2ecf20Sopenharmony_ci#endif				/*  */
388c2ecf20Sopenharmony_ci#endif				/*  */
398c2ecf20Sopenharmony_ci#if defined(QL_DEBUG_LEVEL_4)
408c2ecf20Sopenharmony_ci#define DEBUG4(x)	do {x;} while (0);
418c2ecf20Sopenharmony_ci#else				/*  */
428c2ecf20Sopenharmony_ci#define DEBUG4(x)	do {} while (0);
438c2ecf20Sopenharmony_ci#endif				/*  */
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#if defined(QL_DEBUG_LEVEL_5)
468c2ecf20Sopenharmony_ci#define DEBUG5(x)	do {x;} while (0);
478c2ecf20Sopenharmony_ci#else				/*  */
488c2ecf20Sopenharmony_ci#define DEBUG5(x)	do {} while (0);
498c2ecf20Sopenharmony_ci#endif				/*  */
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#if defined(QL_DEBUG_LEVEL_7)
528c2ecf20Sopenharmony_ci#define DEBUG7(x)	do {x; } while (0)
538c2ecf20Sopenharmony_ci#else				/*  */
548c2ecf20Sopenharmony_ci#define DEBUG7(x)	do {} while (0)
558c2ecf20Sopenharmony_ci#endif				/*  */
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci#if defined(QL_DEBUG_LEVEL_9)
588c2ecf20Sopenharmony_ci#define DEBUG9(x)	do {x;} while (0);
598c2ecf20Sopenharmony_ci#else				/*  */
608c2ecf20Sopenharmony_ci#define DEBUG9(x)	do {} while (0);
618c2ecf20Sopenharmony_ci#endif				/*  */
62