cy7c67200_300_debug.h

来自「linux嵌入式课程实践中的一个关于声卡驱动程序 。」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef CY7C67200_300_DEBUG_H#define CY7C67200_300_DEBUG_H#ifdef CONFIG_USB_DEBUG /* defined in cy7c67200_30_lcd.c */extern int cy_dbg_on;#define cy_dbg(format, arg...) \/*    if( cy_dbg_on != 0 ) \        printk(KERN_DEBUG __FILE__ ":"  "%d: " format "\n" ,__LINE__, ## arg)*/#else#define cy_dbg(format, arg...) do {} while (0)/*		        printk(KERN_DEBUG __FILE__ ":"  "%d: " format "\n" ,__LINE__, ## arg)*/#endif#define cy_err(format, arg...) \	printk(KERN_INFO __FILE__ ":" format "\n" ,__LINE__, ##arg )		//  printk(KERN_ERR __FILE__ ":"  "%d: " format "\n" ,__LINE__, ## arg)#define cy_info(format, arg...) \  printk(KERN_INFO __FILE__ ":"  "%d: " format "\n" ,__LINE__, ## arg)#define cy_warn(format, arg...) \  printk(KERN_WARNING __FILE__ ":"  "%d: " format "\n" ,__LINE__, ## arg)#endif  // CY7C67200_300_DEBUG_H

⌨️ 快捷键说明

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