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/tokenring/skisa.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/tokenring/skisa.c')
-rw-r--r-- | drivers/net/tokenring/skisa.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/tokenring/skisa.c b/drivers/net/tokenring/skisa.c index ecbddc80a2a5..32e8d5a9f958 100644 --- a/drivers/net/tokenring/skisa.c +++ b/drivers/net/tokenring/skisa.c | |||
@@ -139,6 +139,7 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
139 | static int versionprinted; | 139 | static int versionprinted; |
140 | const unsigned *port; | 140 | const unsigned *port; |
141 | int j, err = 0; | 141 | int j, err = 0; |
142 | DECLARE_MAC_BUF(mac); | ||
142 | 143 | ||
143 | if (!dev) | 144 | if (!dev) |
144 | return -ENOMEM; | 145 | return -ENOMEM; |
@@ -169,11 +170,8 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
169 | 170 | ||
170 | sk_isa_read_eeprom(dev); | 171 | sk_isa_read_eeprom(dev); |
171 | 172 | ||
172 | printk(KERN_DEBUG "skisa.c: Ring Station Address: "); | 173 | printk(KERN_DEBUG "skisa.c: Ring Station Address: %s\n", |
173 | printk("%2.2x", dev->dev_addr[0]); | 174 | print_mac(mac, dev->dev_addr)); |
174 | for (j = 1; j < 6; j++) | ||
175 | printk(":%2.2x", dev->dev_addr[j]); | ||
176 | printk("\n"); | ||
177 | 175 | ||
178 | tp = netdev_priv(dev); | 176 | tp = netdev_priv(dev); |
179 | tp->setnselout = sk_isa_setnselout_pins; | 177 | tp->setnselout = sk_isa_setnselout_pins; |