qla_debug.h
来自「这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自」· C头文件 代码 · 共 138 行
H
138 行
/****************************************************************************** * QLOGIC LINUX SOFTWARE * * QLogic ISP2x00 device driver for Linux 2.4.x * Copyright (C) 2002 Qlogic Corporation * (www.qlogic.com) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * ******************************************************************************/#undef ENTER_TRACE/** Macros use for debugging the driver.*/#if defined(ENTER_TRACE)#define ENTER(x) do { printk("qla2100 : Entering %s()\n", x); } while (0)#define LEAVE(x) do { printk("qla2100 : Leaving %s()\n", x); } while (0)#define ENTER_INTR(x) do { printk("qla2100 : Entering %s()\n", x); } while (0)#define LEAVE_INTR(x) do { printk("qla2100 : Leaving %s()\n", x); } while (0)#else#define ENTER(x) do {} while (0)#define LEAVE(x) do {} while (0)#define ENTER_INTR(x) do {} while (0)#define LEAVE_INTR(x) do {} while (0)#endif#if defined(QL_DEBUG_LEVEL_3)#define DEBUG3(x) do {x;} while (0);#define DEBUG2_3(x) do {x;} while (0);#define DEBUG2_3_11(x) do {x;} while (0);#define DEBUG3_11(x) do {x;} while (0);#else#define DEBUG3(x) do {} while (0);#endif#if QLA2100_COMTRACE#define COMTRACE(x) do {printk(x);} while (0);#else#define COMTRACE(x) do {} while (0);#endif#if DEBUG_QLA2100#define DEBUG(x) do {x;} while (0);#else#define DEBUG(x) do {} while (0);#endif#if defined(QL_DEBUG_LEVEL_1)#define DEBUG1(x) do {x;} while (0);#else#define DEBUG1(x) do {} while (0);#endif#if defined(QL_DEBUG_LEVEL_2)#define DEBUG2(x) do {x;} while (0);#define DEBUG2_3(x) do {x;} while (0);#define DEBUG2_3_11(x) do {x;} while (0);#define DEBUG2_11(x) do {x;} while (0);#else#define DEBUG2(x) do {} while (0); #if !defined(QL_DEBUG_LEVEL_3) #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#if defined(QL_DEBUG_LEVEL_7)#define DEBUG7(x) do {x;} while (0);#else#define DEBUG7(x) do {} while (0);#endif#if defined(QL_DEBUG_LEVEL_9)#define DEBUG9(x) do {x;} while (0);#define DEBUG9_10(x) do {x;} while (0);#else#define DEBUG9(x) do {} while (0);#endif#if defined(QL_DEBUG_LEVEL_10)#define DEBUG10(x) do {x;} while (0);#define DEBUG9_10(x) do {x;} while (0);#else#define DEBUG10(x) do {} while (0); #if !defined(QL_DEBUG_LEVEL_9) #define DEBUG9_10(x) do {} while (0); #endif#endif#if defined(QL_DEBUG_LEVEL_11)#define DEBUG11(x) do{x;} while(0);#if !defined(DEBUG2_11)#define DEBUG2_11(x) do{x;} while(0);#endif#if !defined(DEBUG2_3_11)#define DEBUG2_3_11(x) do{x;} while(0);#endif#if !defined(DEBUG3_11)#define DEBUG3_11(x) do{x;} while(0);#endif#else#define DEBUG11(x) do{} while(0); #if !defined(QL_DEBUG_LEVEL_2) #define DEBUG2_11(x) do{} while(0); #if !defined(QL_DEBUG_LEVEL_3) #define DEBUG2_3_11(x) do{} while(0); #endif #endif #if !defined(QL_DEBUG_LEVEL_3) #define DEBUG3_11(x) do{} while(0); #endif#endif#if defined(QL_DEBUG_LEVEL_12)#define DEBUG12(x) do {x;} while (0);#else#define DEBUG12(x) do {} while (0);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?