zc0301_debug.h

来自「在LINUX下编译的摄像头驱动源码,有MAKE文件」· C头文件 代码 · 共 31 行

H
31
字号
/*	This file contains all the debug functions using in this driver. * *	It is created by WE.XCC at 2008.05.03
 *
 *	Author's E-mail:84318391@163.com */#ifndef _ZC0301_DEBUG_H_#define _ZC0301_DEBUG_H_#define DEBUG          0xff    /*main switch*/#define DEBUG_INFO     0x01    /*to print tip informations*/#define DEBUG_ERROR    0x02    /*to print error informations*/#define DEBUG_PARAM    0x04    /*to print informations with param(s)*/#define debug_info(info)                	 \	do { if (DEBUG & DEBUG_INFO)             \           { printk(KERN_INFO "%s", info); }}    while(0)#define debug_error(error)              	 \	do { if (DEBUG & DEBUG_ERROR)            \           { printk(KERN_INFO "%s", error); }}    while(0)#define debug_param(args...)             	 \	do { if (DEBUG & DEBUG_PARAM)		 \           { printk(KERN_INFO args); }}          while(0)#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?