summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.h b/main.h
index cb751d0..e2727db 100644
--- a/main.h
+++ b/main.h
@@ -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