Commit 32e24930 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

usbatm: Fix dynamic_debug / ratelimited atm_dbg and atm_rldbg macros

Fix atm_dbg to use normal pr_debug not dynamic_pr_debug
because dynamic_pr_debug may not be compiled in at all.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Tested-by: default avatarKrzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29fc2bc7
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <linux/stringify.h> #include <linux/stringify.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/ratelimit.h>
/* /*
#define VERBOSE_DEBUG #define VERBOSE_DEBUG
...@@ -59,13 +60,12 @@ ...@@ -59,13 +60,12 @@
atm_printk(KERN_INFO, instance , format , ## arg) atm_printk(KERN_INFO, instance , format , ## arg)
#define atm_warn(instance, format, arg...) \ #define atm_warn(instance, format, arg...) \
atm_printk(KERN_WARNING, instance , format , ## arg) atm_printk(KERN_WARNING, instance , format , ## arg)
#define atm_dbg(instance, format, arg...) \ #define atm_dbg(instance, format, ...) \
dynamic_pr_debug("ATM dev %d: " format , \ pr_debug("ATM dev %d: " format, \
(instance)->atm_dev->number , ## arg) (instance)->atm_dev->number, ##__VA_ARGS__)
#define atm_rldbg(instance, format, arg...) \ #define atm_rldbg(instance, format, ...) \
if (printk_ratelimit()) \ pr_debug_ratelimited("ATM dev %d: " format, \
atm_dbg(instance , format , ## arg) (instance)->atm_dev->number, ##__VA_ARGS__)
/* flags, set by mini-driver in bind() */ /* flags, set by mini-driver in bind() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment