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/jazzsonic.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/jazzsonic.c')
-rw-r--r-- | drivers/net/jazzsonic.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/jazzsonic.c b/drivers/net/jazzsonic.c index 13847a3e43e5..d3825c8ee994 100644 --- a/drivers/net/jazzsonic.c +++ b/drivers/net/jazzsonic.c | |||
@@ -209,6 +209,7 @@ static int __init jazz_sonic_probe(struct platform_device *pdev) | |||
209 | struct resource *res; | 209 | struct resource *res; |
210 | int err = 0; | 210 | int err = 0; |
211 | int i; | 211 | int i; |
212 | DECLARE_MAC_BUF(mac); | ||
212 | 213 | ||
213 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 214 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
214 | if (!res) | 215 | if (!res) |
@@ -233,13 +234,8 @@ static int __init jazz_sonic_probe(struct platform_device *pdev) | |||
233 | if (err) | 234 | if (err) |
234 | goto out1; | 235 | goto out1; |
235 | 236 | ||
236 | printk("%s: MAC ", dev->name); | 237 | printk("%s: MAC %s IRQ %d\n", |
237 | for (i = 0; i < 6; i++) { | 238 | dev->name, print_mac(mac, dev->dev_addr), dev->irq); |
238 | printk("%2.2x", dev->dev_addr[i]); | ||
239 | if (i < 5) | ||
240 | printk(":"); | ||
241 | } | ||
242 | printk(" IRQ %d\n", dev->irq); | ||
243 | 239 | ||
244 | return 0; | 240 | return 0; |
245 | 241 | ||