Commit c1ddce98 authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

USB: MUSB: checkpatch.pl fixes to musb_debug.h

Misc cleanup patch.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 8be37e7e
...@@ -37,15 +37,15 @@ ...@@ -37,15 +37,15 @@
#define yprintk(facility, format, args...) \ #define yprintk(facility, format, args...) \
do { printk(facility "%s %d: " format , \ do { printk(facility "%s %d: " format , \
__FUNCTION__, __LINE__ , ## args); } while (0) __func__, __LINE__ , ## args); } while (0)
#define WARN(fmt, args...) yprintk(KERN_WARNING,fmt, ## args) #define WARN(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
#define INFO(fmt,args...) yprintk(KERN_INFO,fmt, ## args) #define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
#define ERR(fmt,args...) yprintk(KERN_ERR,fmt, ## args) #define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
#define xprintk(level, facility, format, args...) do { \ #define xprintk(level, facility, format, args...) do { \
if ( _dbg_level(level) ) { \ if (_dbg_level(level)) { \
printk(facility "%s %d: " format , \ printk(facility "%s %d: " format , \
__FUNCTION__, __LINE__ , ## args); \ __func__, __LINE__ , ## args); \
} } while (0) } } while (0)
#if MUSB_DEBUG > 0 #if MUSB_DEBUG > 0
...@@ -59,7 +59,7 @@ static inline int _dbg_level(unsigned l) ...@@ -59,7 +59,7 @@ static inline int _dbg_level(unsigned l)
return debug >= l; return debug >= l;
} }
#define DBG(level,fmt,args...) xprintk(level,KERN_DEBUG,fmt, ## args) #define DBG(level, fmt, args...) xprintk(level, KERN_DEBUG, fmt, ## args)
extern const char *otg_state_string(struct musb *); extern const char *otg_state_string(struct musb *);
......
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