diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 14:45:58 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 14:45:58 -0700 |
| commit | 6866d52ad99a8c2c5301c7371fce365d25b2d0be (patch) | |
| tree | f39adaa4087fd91ed21e7fd81c09ace7b2d9228d /usb-usbatm-move-the-atm_dbg-call-to-use-dynamic-debug.patch | |
| parent | e275d064f56be8b9dec6fc2e33d6b075dcc2ac62 (diff) | |
| download | patches-6866d52ad99a8c2c5301c7371fce365d25b2d0be.tar.gz | |
move applied patches to applied/ and add a pwm patch
Diffstat (limited to 'usb-usbatm-move-the-atm_dbg-call-to-use-dynamic-debug.patch')
| -rw-r--r-- | usb-usbatm-move-the-atm_dbg-call-to-use-dynamic-debug.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/usb-usbatm-move-the-atm_dbg-call-to-use-dynamic-debug.patch b/usb-usbatm-move-the-atm_dbg-call-to-use-dynamic-debug.patch deleted file mode 100644 index e2b15aa5168699..00000000000000 --- a/usb-usbatm-move-the-atm_dbg-call-to-use-dynamic-debug.patch +++ /dev/null @@ -1,46 +0,0 @@ -From foo@baz Fri Jun 28 11:04:33 PDT 2013 -Date: Fri, 28 Jun 2013 11:04:33 -0700 -To: Greg KH <gregkh@linuxfoundation.org> -Cc: Duncan Sands <duncan.sands@free.fr> -From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -Subject: 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. - -Cc: Duncan Sands <duncan.sands@free.fr> -Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> ---- - drivers/usb/atm/usbatm.h | 16 +++++----------- - 1 file changed, 5 insertions(+), 11 deletions(-) - ---- a/drivers/usb/atm/usbatm.h -+++ b/drivers/usb/atm/usbatm.h -@@ -59,18 +59,12 @@ - atm_printk(KERN_INFO, instance , format , ## arg) - #define atm_warn(instance, format, arg...) \ - atm_printk(KERN_WARNING, instance , format , ## arg) --#ifdef DEBUG --#define atm_dbg(instance, format, arg...) \ -- atm_printk(KERN_DEBUG, instance , format , ## arg) --#define atm_rldbg(instance, format, arg...) \ -+#define atm_dbg(instance, format, arg...) \ -+ dynamic_pr_debug("ATM dev %d: " format , \ -+ (instance)->atm_dev->number , ## arg) -+#define atm_rldbg(instance, format, arg...) \ - if (printk_ratelimit()) \ -- atm_printk(KERN_DEBUG, instance , format , ## arg) --#else --#define atm_dbg(instance, format, arg...) \ -- do {} while (0) --#define atm_rldbg(instance, format, arg...) \ -- do {} while (0) --#endif -+ atm_dbg(instance , format , ## arg) - - - /* flags, set by mini-driver in bind() */ |
