aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eepro.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/eepro.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/eepro.c')
-rw-r--r--drivers/net/eepro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c
index 54811f6f766d..83bda6ccde98 100644
--- a/drivers/net/eepro.c
+++ b/drivers/net/eepro.c
@@ -690,6 +690,7 @@ static void __init eepro_print_info (struct net_device *dev)
690 struct eepro_local * lp = netdev_priv(dev); 690 struct eepro_local * lp = netdev_priv(dev);
691 int i; 691 int i;
692 const char * ifmap[] = {"AUI", "10Base2", "10BaseT"}; 692 const char * ifmap[] = {"AUI", "10Base2", "10BaseT"};
693 DECLARE_MAC_BUF(mac);
693 694
694 i = inb(dev->base_addr + ID_REG); 695 i = inb(dev->base_addr + ID_REG);
695 printk(KERN_DEBUG " id: %#x ",i); 696 printk(KERN_DEBUG " id: %#x ",i);
@@ -711,10 +712,10 @@ static void __init eepro_print_info (struct net_device *dev)
711 case LAN595: 712 case LAN595:
712 printk("%s: Intel 82595-based lan card at %#x,", 713 printk("%s: Intel 82595-based lan card at %#x,",
713 dev->name, (unsigned)dev->base_addr); 714 dev->name, (unsigned)dev->base_addr);
715 break;
714 } 716 }
715 717
716 for (i=0; i < 6; i++) 718 printk(" %s", print_mac(mac, dev->dev_addr));
717 printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
718 719
719 if (net_debug > 3) 720 if (net_debug > 3)
720 printk(KERN_DEBUG ", %dK RCV buffer", 721 printk(KERN_DEBUG ", %dK RCV buffer",