| /******************************************************************************** |
| * Marvell GPL License Option |
| * |
| * If you received this File from Marvell, you may opt to use, redistribute and/or |
| * modify this File in accordance with the terms and conditions of the General |
| * Public License Version 2, June 1991 (the "GPL License"), a copy of which is |
| * available along with the File in the license.txt file or by writing to the Free |
| * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or |
| * on the worldwide web at http://www.gnu.org/licenses/gpl.txt. |
| * |
| * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED |
| * WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY |
| * DISCLAIMED. The GPL License provides additional details about this warranty |
| * disclaimer. |
| ******************************************************************************/ |
| |
| #ifndef __DEBUG_H |
| #define __DEBUG_H |
| |
| #include "com_type.h" |
| |
| enum PRINT_LEVEL |
| { |
| PRN_NONE=0, |
| PRN_ERR, |
| PRN_RES, |
| PRN_INFO, |
| PRN_DBG |
| |
| }; |
| |
| #define DEBUG_LEVEL PRN_DBG |
| |
| |
| #if 0 |
| //#define dbg_printf(level, fmt, ...) if(level<=DEBUG_LEVEL)lgpl_printf(fmt, ...) |
| #define dbg_printf(lel, ...) \ |
| do { \ |
| if (lel <= DEBUG_LEVEL) { \ |
| lgpl_printf(__VA_ARGS__); \ |
| } \ |
| } \ |
| } while(0) |
| #endif |
| |
| #endif |