diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-28 14:32:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-23 19:32:36 -0400 |
commit | 2d6401cf4ca3861692a4779745e0049cac769d10 (patch) | |
tree | c41a2b9413ab485fb8d416e0815cdac6ec3fc635 /drivers/usb/atm/usbatm.h | |
parent | ca4d701323f8450b1bf80359a41af8cbccc7731a (diff) |
USB: usbatm: move the atm_dbg() call to use dynamic debug
Move the atm_dbg() call to use the dynamic debug subsystem, and not rely
on CONFIG_USB_DEBUG for if things should be printed out or not.
This also means the drivers do not have to be rebuilt to get debugging
messages, important for getting information from users who can not
rebuild their kernels.
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/atm/usbatm.h')
-rw-r--r-- | drivers/usb/atm/usbatm.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/usb/atm/usbatm.h b/drivers/usb/atm/usbatm.h index 71dd13994bbe..5651231a7437 100644 --- a/drivers/usb/atm/usbatm.h +++ b/drivers/usb/atm/usbatm.h | |||
@@ -59,18 +59,12 @@ | |||
59 | atm_printk(KERN_INFO, instance , format , ## arg) | 59 | atm_printk(KERN_INFO, instance , format , ## arg) |
60 | #define atm_warn(instance, format, arg...) \ | 60 | #define atm_warn(instance, format, arg...) \ |
61 | atm_printk(KERN_WARNING, instance , format , ## arg) | 61 | atm_printk(KERN_WARNING, instance , format , ## arg) |
62 | #ifdef DEBUG | 62 | #define atm_dbg(instance, format, arg...) \ |
63 | #define atm_dbg(instance, format, arg...) \ | 63 | dynamic_pr_debug("ATM dev %d: " format , \ |
64 | atm_printk(KERN_DEBUG, instance , format , ## arg) | 64 | (instance)->atm_dev->number , ## arg) |
65 | #define atm_rldbg(instance, format, arg...) \ | 65 | #define atm_rldbg(instance, format, arg...) \ |
66 | if (printk_ratelimit()) \ | 66 | if (printk_ratelimit()) \ |
67 | atm_printk(KERN_DEBUG, instance , format , ## arg) | 67 | atm_dbg(instance , format , ## arg) |
68 | #else | ||
69 | #define atm_dbg(instance, format, arg...) \ | ||
70 | do {} while (0) | ||
71 | #define atm_rldbg(instance, format, arg...) \ | ||
72 | do {} while (0) | ||
73 | #endif | ||
74 | 68 | ||
75 | 69 | ||
76 | /* flags, set by mini-driver in bind() */ | 70 | /* flags, set by mini-driver in bind() */ |