--- zzzz-none-000/linux-2.6.28.10/drivers/usb/musb/musb_debug.h 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/drivers/usb/musb/musb_debug.h 2010-03-30 18:41:51.000000000 +0000 @@ -38,7 +38,9 @@ #define yprintk(facility, format, args...) \ do { printk(facility "%s %d: " format , \ __func__, __LINE__ , ## args); } while (0) +//#define WARN(fmt, args...) yprintk(KERN_WARNING, fmt, ## args) #define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args) + #define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args) #define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args) @@ -48,11 +50,15 @@ __func__, __LINE__ , ## args); \ } } while (0) -extern unsigned musb_debug; +#if MUSB_DEBUG > 0 +extern unsigned debug; +#else +#define debug 0 +#endif static inline int _dbg_level(unsigned l) { - return musb_debug >= l; + return debug >= l; } #define DBG(level, fmt, args...) xprintk(level, KERN_DEBUG, fmt, ## args)