diff options
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -9,8 +9,12 @@ */ #ifdef HELLO_DEBUG #define PDEBUG(fmt, args...) printk( KERN_DEBUG "[hello] " fmt, ##args) + #define PRDEBUG(fmt, args...) if (printk_ratelimit()) \ + printk( KERN_DEBUG "[hello] " fmt, ##args) #else - #define PDEBUG(fmt, args...) /* not debugging: nothing */ + /* not debugging: nothing */ + #define PDEBUG(fmt, args...) + #define PRDEBUG(fmt, args...) #endif #ifndef HELLO_MAJOR |