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/proteon.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/proteon.c')
-rw-r--r-- | drivers/net/tokenring/proteon.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/tokenring/proteon.c b/drivers/net/tokenring/proteon.c index 85d156dea033..ca6b65919b3d 100644 --- a/drivers/net/tokenring/proteon.c +++ b/drivers/net/tokenring/proteon.c | |||
@@ -122,6 +122,7 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
122 | static int versionprinted; | 122 | static int versionprinted; |
123 | const unsigned *port; | 123 | const unsigned *port; |
124 | int j,err = 0; | 124 | int j,err = 0; |
125 | DECLARE_MAC_BUF(mac); | ||
125 | 126 | ||
126 | if (!dev) | 127 | if (!dev) |
127 | return -ENOMEM; | 128 | return -ENOMEM; |
@@ -152,11 +153,8 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
152 | 153 | ||
153 | proteon_read_eeprom(dev); | 154 | proteon_read_eeprom(dev); |
154 | 155 | ||
155 | printk(KERN_DEBUG "proteon.c: Ring Station Address: "); | 156 | printk(KERN_DEBUG "proteon.c: Ring Station Address: %s\n", |
156 | printk("%2.2x", dev->dev_addr[0]); | 157 | print_mac(mac, dev->dev_addr)); |
157 | for (j = 1; j < 6; j++) | ||
158 | printk(":%2.2x", dev->dev_addr[j]); | ||
159 | printk("\n"); | ||
160 | 158 | ||
161 | tp = netdev_priv(dev); | 159 | tp = netdev_priv(dev); |
162 | tp->setnselout = proteon_setnselout_pins; | 160 | tp->setnselout = proteon_setnselout_pins; |