提交 903c99d8 编写于 作者: J Joe Perches 提交者: John W. Linville

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

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 c96c31e4
...@@ -90,21 +90,18 @@ ...@@ -90,21 +90,18 @@
/* 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" , \ printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \
## arg); \ print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len); \
print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, \
buf, len); \
} \ } \
} while (0) } while (0)
static uint at76_debug = DBG_DEFAULTS; static uint at76_debug = DBG_DEFAULTS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册