diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/musb_debug.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/usb/musb/musb_debug.h b/drivers/usb/musb/musb_debug.h index d73afdbde3ee..94f6973cf8f7 100644 --- a/drivers/usb/musb/musb_debug.h +++ b/drivers/usb/musb/musb_debug.h | |||
@@ -42,11 +42,10 @@ | |||
42 | #define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args) | 42 | #define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args) |
43 | #define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args) | 43 | #define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args) |
44 | 44 | ||
45 | #define xprintk(level, facility, format, args...) do { \ | 45 | #define DBG(level, format, args...) do { \ |
46 | if (_dbg_level(level)) { \ | 46 | if (_dbg_level(level)) \ |
47 | printk(facility "%s %d: " format , \ | 47 | pr_debug("%s %d: " format, __func__, __LINE__, ## args); \ |
48 | __func__, __LINE__ , ## args); \ | 48 | } while (0) |
49 | } } while (0) | ||
50 | 49 | ||
51 | extern unsigned musb_debug; | 50 | extern unsigned musb_debug; |
52 | 51 | ||
@@ -55,8 +54,6 @@ static inline int _dbg_level(unsigned l) | |||
55 | return musb_debug >= l; | 54 | return musb_debug >= l; |
56 | } | 55 | } |
57 | 56 | ||
58 | #define DBG(level, fmt, args...) xprintk(level, KERN_DEBUG, fmt, ## args) | ||
59 | |||
60 | extern const char *otg_state_string(struct musb *); | 57 | extern const char *otg_state_string(struct musb *); |
61 | 58 | ||
62 | #ifdef CONFIG_DEBUG_FS | 59 | #ifdef CONFIG_DEBUG_FS |