diff options
-rw-r--r-- | drivers/usb/atm/usbatm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/atm/usbatm.h b/drivers/usb/atm/usbatm.h index 5651231a7437..f3eecd967a8a 100644 --- a/drivers/usb/atm/usbatm.h +++ b/drivers/usb/atm/usbatm.h | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/stringify.h> | 34 | #include <linux/stringify.h> |
35 | #include <linux/usb.h> | 35 | #include <linux/usb.h> |
36 | #include <linux/mutex.h> | 36 | #include <linux/mutex.h> |
37 | #include <linux/ratelimit.h> | ||
37 | 38 | ||
38 | /* | 39 | /* |
39 | #define VERBOSE_DEBUG | 40 | #define VERBOSE_DEBUG |
@@ -59,13 +60,12 @@ | |||
59 | atm_printk(KERN_INFO, instance , format , ## arg) | 60 | atm_printk(KERN_INFO, instance , format , ## arg) |
60 | #define atm_warn(instance, format, arg...) \ | 61 | #define atm_warn(instance, format, arg...) \ |
61 | atm_printk(KERN_WARNING, instance , format , ## arg) | 62 | atm_printk(KERN_WARNING, instance , format , ## arg) |
62 | #define atm_dbg(instance, format, arg...) \ | 63 | #define atm_dbg(instance, format, ...) \ |
63 | dynamic_pr_debug("ATM dev %d: " format , \ | 64 | pr_debug("ATM dev %d: " format, \ |
64 | (instance)->atm_dev->number , ## arg) | 65 | (instance)->atm_dev->number, ##__VA_ARGS__) |
65 | #define atm_rldbg(instance, format, arg...) \ | 66 | #define atm_rldbg(instance, format, ...) \ |
66 | if (printk_ratelimit()) \ | 67 | pr_debug_ratelimited("ATM dev %d: " format, \ |
67 | atm_dbg(instance , format , ## arg) | 68 | (instance)->atm_dev->number, ##__VA_ARGS__) |
68 | |||
69 | 69 | ||
70 | /* flags, set by mini-driver in bind() */ | 70 | /* flags, set by mini-driver in bind() */ |
71 | 71 | ||