Skip to content

Commit

Permalink
usbatm: Fix dynamic_debug / ratelimited atm_dbg and atm_rldbg macros
Browse files Browse the repository at this point in the history
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: Joe Perches <joe@perches.com>
Tested-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Oct 29, 2013
1 parent 29fc2bc commit 32e2493
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drivers/usb/atm/usbatm.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <linux/stringify.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include <linux/ratelimit.h>

/*
#define VERBOSE_DEBUG
Expand All @@ -59,13 +60,12 @@
atm_printk(KERN_INFO, instance , format , ## arg)
#define atm_warn(instance, format, arg...) \
atm_printk(KERN_WARNING, 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_dbg(instance , format , ## arg)

#define atm_dbg(instance, format, ...) \
pr_debug("ATM dev %d: " format, \
(instance)->atm_dev->number, ##__VA_ARGS__)
#define atm_rldbg(instance, format, ...) \
pr_debug_ratelimited("ATM dev %d: " format, \
(instance)->atm_dev->number, ##__VA_ARGS__)

/* flags, set by mini-driver in bind() */

Expand Down

0 comments on commit 32e2493

Please sign in to comment.