diff options
author | Joe Perches <joe@perches.com> | 2010-07-26 17:39:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:14:13 -0400 |
commit | 903c99d8d6d055c56e7fdfba4602c05e357fa186 (patch) | |
tree | fb463590157eed2262c70c9c3b1ee075c6ef7f2e /drivers/net/wireless/at76c50x-usb.c | |
parent | c96c31e499b70964cfc88744046c998bb710e4b8 (diff) |
drivers/net/wireless/at76c50x-usb.c: Neaten macros
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/at76c50x-usb.c')
-rw-r--r-- | drivers/net/wireless/at76c50x-usb.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index 9b0f055420ee..d5140a87f073 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
@@ -89,22 +89,19 @@ | |||
89 | #define DBG_DEFAULTS 0 | 89 | #define DBG_DEFAULTS 0 |
90 | 90 | ||
91 | /* Use our own dbg macro */ | 91 | /* Use our own dbg macro */ |
92 | #define at76_dbg(bits, format, arg...) \ | 92 | #define at76_dbg(bits, format, arg...) \ |
93 | do { \ | 93 | do { \ |
94 | if (at76_debug & (bits)) \ | 94 | if (at76_debug & (bits)) \ |
95 | printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , \ | 95 | printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \ |
96 | ## arg); \ | 96 | } while (0) |
97 | } while (0) | 97 | |
98 | 98 | #define at76_dbg_dump(bits, buf, len, format, arg...) \ | |
99 | #define at76_dbg_dump(bits, buf, len, format, arg...) \ | 99 | do { \ |
100 | do { \ | 100 | if (at76_debug & (bits)) { \ |
101 | if (at76_debug & (bits)) { \ | 101 | printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg); \ |
102 | printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , \ | 102 | print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len); \ |
103 | ## arg); \ | 103 | } \ |
104 | print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, \ | 104 | } while (0) |
105 | buf, len); \ | ||
106 | } \ | ||
107 | } while (0) | ||
108 | 105 | ||
109 | static uint at76_debug = DBG_DEFAULTS; | 106 | static uint at76_debug = DBG_DEFAULTS; |
110 | 107 | ||