diff options
Diffstat (limited to 'drivers/input/serio/i8042.h')
-rw-r--r-- | drivers/input/serio/i8042.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/input/serio/i8042.h b/drivers/input/serio/i8042.h index cbc1beb6657..ac1d759d0f5 100644 --- a/drivers/input/serio/i8042.h +++ b/drivers/input/serio/i8042.h | |||
@@ -89,15 +89,19 @@ | |||
89 | #ifdef DEBUG | 89 | #ifdef DEBUG |
90 | static unsigned long i8042_start_time; | 90 | static unsigned long i8042_start_time; |
91 | #define dbg_init() do { i8042_start_time = jiffies; } while (0) | 91 | #define dbg_init() do { i8042_start_time = jiffies; } while (0) |
92 | #define dbg(format, arg...) \ | 92 | #define dbg(format, arg...) \ |
93 | do { \ | 93 | do { \ |
94 | if (i8042_debug) \ | 94 | if (i8042_debug) \ |
95 | printk(KERN_DEBUG __FILE__ ": " format " [%d]\n" , \ | 95 | printk(KERN_DEBUG KBUILD_MODNAME ": [%d] " format, \ |
96 | ## arg, (int) (jiffies - i8042_start_time)); \ | 96 | (int) (jiffies - i8042_start_time), ##arg); \ |
97 | } while (0) | 97 | } while (0) |
98 | #else | 98 | #else |
99 | #define dbg_init() do { } while (0) | 99 | #define dbg_init() do { } while (0) |
100 | #define dbg(format, arg...) do {} while (0) | 100 | #define dbg(format, arg...) \ |
101 | do { \ | ||
102 | if (0) \ | ||
103 | printk(KERN_DEBUG pr_fmt(format), ##arg); \ | ||
104 | } while (0) | ||
101 | #endif | 105 | #endif |
102 | 106 | ||
103 | #endif /* _I8042_H */ | 107 | #endif /* _I8042_H */ |