diff options
author | Joe Perches <joe@perches.com> | 2012-10-28 04:05:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-14 14:55:32 -0500 |
commit | 6a4b09f807afab788b58b529c4a9d6dc27cc6933 (patch) | |
tree | 30d3085facc5a5a06eb05cf86a92a4728303ce2a /drivers/net/wireless/iwlegacy | |
parent | 0f01545346cd97f823fc0aaf0c02d4fc7bec6d46 (diff) |
wireless: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
dev_<level> calls take less code than dev_printk(KERN_<LEVEL>
and reducing object size is good.
Coalesce formats for easier grep.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index b4bb813362bd..e254cba4557a 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -2919,9 +2919,8 @@ do { \ | |||
2919 | #define IL_DBG(level, fmt, args...) \ | 2919 | #define IL_DBG(level, fmt, args...) \ |
2920 | do { \ | 2920 | do { \ |
2921 | if (il_get_debug_level(il) & level) \ | 2921 | if (il_get_debug_level(il) & level) \ |
2922 | dev_printk(KERN_ERR, &il->hw->wiphy->dev, \ | 2922 | dev_err(&il->hw->wiphy->dev, "%c %s " fmt, \ |
2923 | "%c %s " fmt, in_interrupt() ? 'I' : 'U', \ | 2923 | in_interrupt() ? 'I' : 'U', __func__ , ##args); \ |
2924 | __func__ , ## args); \ | ||
2925 | } while (0) | 2924 | } while (0) |
2926 | 2925 | ||
2927 | #define il_print_hex_dump(il, level, p, len) \ | 2926 | #define il_print_hex_dump(il, level, p, len) \ |