自定义DEBUG

来源:互联网 发布:免费英语网络课程 编辑:程序博客网 时间:2024/06/10 10:22
#define DEBUG
#ifdef  DEBUG
#define LOG(fmt, arg...)         printk(KERN_ALERT "##Win.cao>>[%s:%d] "fmt"\n", __func__, __LINE__, ##arg)
#else
#define LOG(...)
#endif
原创粉丝点击