#define MBCS_DEBUG 1
#if MBCS_DEBUG
#define DBG(fmt...) printk(KERN_ALERT fmt)
#else
#define DBG(fmt...)
#endif
例子:
DBG("hello world\n");
DBG("into %s, line: %d\n", __func__, __LINE__);
【linux驱动基础】linux之自定义debug输出
最新推荐文章于 2022-07-06 13:50:33 发布