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/orinoco.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/orinoco.c')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 062286dc8e15..ca6c2da7bc5d 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -2232,6 +2232,7 @@ static int orinoco_init(struct net_device *dev) | |||
2232 | struct hermes_idstring nickbuf; | 2232 | struct hermes_idstring nickbuf; |
2233 | u16 reclen; | 2233 | u16 reclen; |
2234 | int len; | 2234 | int len; |
2235 | DECLARE_MAC_BUF(mac); | ||
2235 | 2236 | ||
2236 | /* No need to lock, the hw_unavailable flag is already set in | 2237 | /* No need to lock, the hw_unavailable flag is already set in |
2237 | * alloc_orinocodev() */ | 2238 | * alloc_orinocodev() */ |
@@ -2274,10 +2275,8 @@ static int orinoco_init(struct net_device *dev) | |||
2274 | goto out; | 2275 | goto out; |
2275 | } | 2276 | } |
2276 | 2277 | ||
2277 | printk(KERN_DEBUG "%s: MAC address %02X:%02X:%02X:%02X:%02X:%02X\n", | 2278 | printk(KERN_DEBUG "%s: MAC address %s\n", |
2278 | dev->name, dev->dev_addr[0], dev->dev_addr[1], | 2279 | dev->name, print_mac(mac, dev->dev_addr)); |
2279 | dev->dev_addr[2], dev->dev_addr[3], dev->dev_addr[4], | ||
2280 | dev->dev_addr[5]); | ||
2281 | 2280 | ||
2282 | /* Get the station name */ | 2281 | /* Get the station name */ |
2283 | err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CNFOWNNAME, | 2282 | err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CNFOWNNAME, |