Linux驱动开启调试信息

           在需要的地方               文件前 | 函数内                                        

#define DEBUG    1

  

#define mled_dbg 1
#if mled_dbg == 1
    #define  mled_dbgmsg(args...) printk(args)
#else 
    #define  mled_dbgmsg(args...)  do{}while(0)
#endif

 

posted @ 2020-07-08 16:42  卷哭你  阅读(353)  评论(0编辑  收藏  举报