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/rionet.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/rionet.c')
-rw-r--r-- | drivers/net/rionet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index d43dcf3ed5a9..e7fd08adbbac 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -432,6 +432,7 @@ static int rionet_setup_netdev(struct rio_mport *mport) | |||
432 | struct net_device *ndev = NULL; | 432 | struct net_device *ndev = NULL; |
433 | struct rionet_private *rnet; | 433 | struct rionet_private *rnet; |
434 | u16 device_id; | 434 | u16 device_id; |
435 | DECLARE_MAC_BUF(mac); | ||
435 | 436 | ||
436 | /* Allocate our net_device structure */ | 437 | /* Allocate our net_device structure */ |
437 | ndev = alloc_etherdev(sizeof(struct rionet_private)); | 438 | ndev = alloc_etherdev(sizeof(struct rionet_private)); |
@@ -472,13 +473,12 @@ static int rionet_setup_netdev(struct rio_mport *mport) | |||
472 | if (rc != 0) | 473 | if (rc != 0) |
473 | goto out; | 474 | goto out; |
474 | 475 | ||
475 | printk("%s: %s %s Version %s, MAC %02x:%02x:%02x:%02x:%02x:%02x\n", | 476 | printk("%s: %s %s Version %s, MAC %s\n", |
476 | ndev->name, | 477 | ndev->name, |
477 | DRV_NAME, | 478 | DRV_NAME, |
478 | DRV_DESC, | 479 | DRV_DESC, |
479 | DRV_VERSION, | 480 | DRV_VERSION, |
480 | ndev->dev_addr[0], ndev->dev_addr[1], ndev->dev_addr[2], | 481 | print_mac(mac, ndev->dev_addr)); |
481 | ndev->dev_addr[3], ndev->dev_addr[4], ndev->dev_addr[5]); | ||
482 | 482 | ||
483 | out: | 483 | out: |
484 | return rc; | 484 | return rc; |