aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tsi108_eth.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/tsi108_eth.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/tsi108_eth.c')
-rw-r--r--drivers/net/tsi108_eth.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c
index fe3225df0d32..df10af7df7b8 100644
--- a/drivers/net/tsi108_eth.c
+++ b/drivers/net/tsi108_eth.c
@@ -1540,6 +1540,7 @@ tsi108_init_one(struct platform_device *pdev)
1540 struct tsi108_prv_data *data = NULL; 1540 struct tsi108_prv_data *data = NULL;
1541 hw_info *einfo; 1541 hw_info *einfo;
1542 int err = 0; 1542 int err = 0;
1543 DECLARE_MAC_BUF(mac);
1543 1544
1544 einfo = pdev->dev.platform_data; 1545 einfo = pdev->dev.platform_data;
1545 1546
@@ -1628,10 +1629,8 @@ tsi108_init_one(struct platform_device *pdev)
1628 goto register_fail; 1629 goto register_fail;
1629 } 1630 }
1630 1631
1631 printk(KERN_INFO "%s: Tsi108 Gigabit Ethernet, MAC: " 1632 printk(KERN_INFO "%s: Tsi108 Gigabit Ethernet, MAC: %s\n"
1632 "%02x:%02x:%02x:%02x:%02x:%02x\n", dev->name, 1633 dev->name, print_mac(mac, dev->dev_addr));
1633 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
1634 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
1635#ifdef DEBUG 1634#ifdef DEBUG
1636 data->msg_enable = DEBUG; 1635 data->msg_enable = DEBUG;
1637 dump_eth_one(dev); 1636 dump_eth_one(dev);