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

[PATCH] USB: fix up usbnet's macros for older compilers

parent 0e438d5e
...@@ -302,24 +302,20 @@ MODULE_PARM_DESC (msg_level, "Initial message level (default = 1)"); ...@@ -302,24 +302,20 @@ MODULE_PARM_DESC (msg_level, "Initial message level (default = 1)");
: (in_interrupt () ? "in_interrupt" : "can sleep")) : (in_interrupt () ? "in_interrupt" : "can sleep"))
#ifdef DEBUG #ifdef DEBUG
#define devdbg(usbnet, fmt, arg...) \ #define devdbg(usbnet, fmt, arg...) \
do { \ printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net.name , ## arg)
printk(KERN_DEBUG "%s:", (usbnet)->net.name); \
printk(fmt, ## arg); \
printk("\n"); \
} while (0)
#else #else
#define devdbg(usbnet, fmt, arg...) do {} while(0) #define devdbg(usbnet, fmt, arg...) do {} while(0)
#endif #endif
#define deverr(usbnet, fmt, arg...) \ #define deverr(usbnet, fmt, arg...) \
printk(KERN_ERR "%s: " fmt "\n" , (usbnet)->net.name, ## arg) printk(KERN_ERR "%s: " fmt "\n" , (usbnet)->net.name , ## arg)
#define devwarn(usbnet, fmt, arg...) \ #define devwarn(usbnet, fmt, arg...) \
printk(KERN_WARNING "%s: " fmt "\n" , (usbnet)->net.name, ## arg) printk(KERN_WARNING "%s: " fmt "\n" , (usbnet)->net.name , ## arg)
#define devinfo(usbnet, fmt, arg...) \ #define devinfo(usbnet, fmt, arg...) \
do { if ((usbnet)->msg_level >= 1) \ do { if ((usbnet)->msg_level >= 1) \
printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net.name, ## arg); \ printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net.name , ## arg); \
} while (0) } while (0)
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
......
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