aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/rrunner.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/rrunner.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/rrunner.c')
-rw-r--r--drivers/net/rrunner.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/rrunner.c b/drivers/net/rrunner.c
index 03facba05259..19152f54ef2b 100644
--- a/drivers/net/rrunner.c
+++ b/drivers/net/rrunner.c
@@ -520,7 +520,7 @@ static int __devinit rr_init(struct net_device *dev)
520 struct rr_regs __iomem *regs; 520 struct rr_regs __iomem *regs;
521 struct eeprom *hw = NULL; 521 struct eeprom *hw = NULL;
522 u32 sram_size, rev; 522 u32 sram_size, rev;
523 int i; 523 DECLARE_MAC_BUF(mac);
524 524
525 rrpriv = netdev_priv(dev); 525 rrpriv = netdev_priv(dev);
526 regs = rrpriv->regs; 526 regs = rrpriv->regs;
@@ -558,11 +558,7 @@ static int __devinit rr_init(struct net_device *dev)
558 *(u32 *)(dev->dev_addr+2) = 558 *(u32 *)(dev->dev_addr+2) =
559 htonl(rr_read_eeprom_word(rrpriv, &hw->manf.BoardULA[4])); 559 htonl(rr_read_eeprom_word(rrpriv, &hw->manf.BoardULA[4]));
560 560
561 printk(" MAC: "); 561 printk(" MAC: %s\n", print_mac(mac, dev->dev_addr));
562
563 for (i = 0; i < 5; i++)
564 printk("%2.2x:", dev->dev_addr[i]);
565 printk("%2.2x\n", dev->dev_addr[i]);
566 562
567 sram_size = rr_read_eeprom_word(rrpriv, (void *)8); 563 sram_size = rr_read_eeprom_word(rrpriv, (void *)8);
568 printk(" SRAM size 0x%06x\n", sram_size); 564 printk(" SRAM size 0x%06x\n", sram_size);