diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/wireless/rtl8187_dev.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rtl8187_dev.c')
-rw-r--r-- | drivers/net/wireless/rtl8187_dev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c index 7dbf11e30db3..bf9f0cc5a645 100644 --- a/drivers/net/wireless/rtl8187_dev.c +++ b/drivers/net/wireless/rtl8187_dev.c | |||
@@ -574,6 +574,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf, | |||
574 | struct ieee80211_channel *channel; | 574 | struct ieee80211_channel *channel; |
575 | u16 txpwr, reg; | 575 | u16 txpwr, reg; |
576 | int err, i; | 576 | int err, i; |
577 | DECLARE_MAC_BUF(mac); | ||
577 | 578 | ||
578 | dev = ieee80211_alloc_hw(sizeof(*priv), &rtl8187_ops); | 579 | dev = ieee80211_alloc_hw(sizeof(*priv), &rtl8187_ops); |
579 | if (!dev) { | 580 | if (!dev) { |
@@ -681,8 +682,8 @@ static int __devinit rtl8187_probe(struct usb_interface *intf, | |||
681 | goto err_free_dev; | 682 | goto err_free_dev; |
682 | } | 683 | } |
683 | 684 | ||
684 | printk(KERN_INFO "%s: hwaddr " MAC_FMT ", rtl8187 V%d + %s\n", | 685 | printk(KERN_INFO "%s: hwaddr %s, rtl8187 V%d + %s\n", |
685 | wiphy_name(dev->wiphy), MAC_ARG(dev->wiphy->perm_addr), | 686 | wiphy_name(dev->wiphy), print_mac(mac, dev->wiphy->perm_addr), |
686 | priv->asic_rev, priv->rf_init == rtl8225_rf_init ? | 687 | priv->asic_rev, priv->rf_init == rtl8225_rf_init ? |
687 | "rtl8225" : "rtl8225z2"); | 688 | "rtl8225" : "rtl8225z2"); |
688 | 689 | ||