Commit 903c99d8 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville

drivers/net/wireless/at76c50x-usb.c: Neaten macros

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c96c31e4
...@@ -89,22 +89,19 @@ ...@@ -89,22 +89,19 @@
#define DBG_DEFAULTS 0 #define DBG_DEFAULTS 0
/* Use our own dbg macro */ /* Use our own dbg macro */
#define at76_dbg(bits, format, arg...) \ #define at76_dbg(bits, format, arg...) \
do { \ do { \
if (at76_debug & (bits)) \ if (at76_debug & (bits)) \
printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , \ printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \
## arg); \ } while (0)
} while (0)
#define at76_dbg_dump(bits, buf, len, format, arg...) \
#define at76_dbg_dump(bits, buf, len, format, arg...) \ do { \
do { \ if (at76_debug & (bits)) { \
if (at76_debug & (bits)) { \ printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \
printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , \ print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len); \
## arg); \ } \
print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, \ } while (0)
buf, len); \
} \
} while (0)
static uint at76_debug = DBG_DEFAULTS; static uint at76_debug = DBG_DEFAULTS;
......
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