1 #undef PDEBUG 2 #ifdef HELLO_DEBUG 3 #define PDEBUG(fmt, args...) printk (KERN_DEBUG "hello: " fmt, ## args) 4 #else 5 #define PDEBUG(fmt, args...) 6 #endif
使用时,如果将#undef PDEBUG改为#define PDEBUG,程序中的打印语句就会打印出来。
1 #undef PDEBUG 2 #ifdef HELLO_DEBUG 3 #define PDEBUG(fmt, args...) printk (KERN_DEBUG "hello: " fmt, ## args) 4 #else 5 #define PDEBUG(fmt, args...) 6 #endif
使用时,如果将#undef PDEBUG改为#define PDEBUG,程序中的打印语句就会打印出来。
上一篇:win7修复MBR
原因之一:直接打开这个代码文件,未从项目文件夹中打开。解决方法之一:利用VS
大家都知道,一般的程序运行的时候,可执行文件本身是被操作系统保护的,不能用改写的方式访问,更别提在本身还在运行的时侯删除自PP Module
学习原理性很强的东西时,以问题驱动学习、理论联系实际(写给自己的,待续)
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M