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/gianfar.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/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 5a1a1165b48c..0db5e6fabe73 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -170,6 +170,7 @@ static int gfar_probe(struct platform_device *pdev) | |||
170 | struct resource *r; | 170 | struct resource *r; |
171 | int idx; | 171 | int idx; |
172 | int err = 0; | 172 | int err = 0; |
173 | DECLARE_MAC_BUF(mac); | ||
173 | 174 | ||
174 | einfo = (struct gianfar_platform_data *) pdev->dev.platform_data; | 175 | einfo = (struct gianfar_platform_data *) pdev->dev.platform_data; |
175 | 176 | ||
@@ -356,10 +357,8 @@ static int gfar_probe(struct platform_device *pdev) | |||
356 | gfar_init_sysfs(dev); | 357 | gfar_init_sysfs(dev); |
357 | 358 | ||
358 | /* Print out the device info */ | 359 | /* Print out the device info */ |
359 | printk(KERN_INFO DEVICE_NAME, dev->name); | 360 | printk(KERN_INFO DEVICE_NAME "%s\n", |
360 | for (idx = 0; idx < 6; idx++) | 361 | dev->name, print_mac(mac, dev->dev_addr)); |
361 | printk("%2.2x%c", dev->dev_addr[idx], idx == 5 ? ' ' : ':'); | ||
362 | printk("\n"); | ||
363 | 362 | ||
364 | /* Even more device info helps when determining which kernel */ | 363 | /* Even more device info helps when determining which kernel */ |
365 | /* provided which set of benchmarks. */ | 364 | /* provided which set of benchmarks. */ |