aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.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/dm9000.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/dm9000.c')
-rw-r--r--drivers/net/dm9000.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index f691ef61b2d3..27ac010900ab 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -595,11 +595,10 @@ dm9000_probe(struct platform_device *pdev)
595 ret = register_netdev(ndev); 595 ret = register_netdev(ndev);
596 596
597 if (ret == 0) { 597 if (ret == 0) {
598 printk("%s: dm9000 at %p,%p IRQ %d MAC: ", 598 DECLARE_MAC_BUF(mac);
599 ndev->name, db->io_addr, db->io_data, ndev->irq); 599 printk("%s: dm9000 at %p,%p IRQ %d MAC: %s\n",
600 for (i = 0; i < 5; i++) 600 ndev->name, db->io_addr, db->io_data, ndev->irq,
601 printk("%02x:", ndev->dev_addr[i]); 601 print_mac(mac, ndev->dev_addr));
602 printk("%02x\n", ndev->dev_addr[5]);
603 } 602 }
604 return 0; 603 return 0;
605 604