aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hp.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/hp.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/hp.c')
-rw-r--r--drivers/net/hp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/hp.c b/drivers/net/hp.c
index 1f11126de354..c649a8019beb 100644
--- a/drivers/net/hp.c
+++ b/drivers/net/hp.c
@@ -127,6 +127,7 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr)
127 int i, retval, board_id, wordmode; 127 int i, retval, board_id, wordmode;
128 const char *name; 128 const char *name;
129 static unsigned version_printed; 129 static unsigned version_printed;
130 DECLARE_MAC_BUF(mac);
130 131
131 if (!request_region(ioaddr, HP_IO_EXTENT, DRV_NAME)) 132 if (!request_region(ioaddr, HP_IO_EXTENT, DRV_NAME))
132 return -EBUSY; 133 return -EBUSY;
@@ -158,7 +159,9 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr)
158 printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); 159 printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
159 160
160 for(i = 0; i < ETHER_ADDR_LEN; i++) 161 for(i = 0; i < ETHER_ADDR_LEN; i++)
161 printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); 162 dev->dev_addr[i] = inb(ioaddr + i);
163
164 printk(" %s", print_mac(mac, dev->dev_addr));
162 165
163 /* Snarf the interrupt now. Someday this could be moved to open(). */ 166 /* Snarf the interrupt now. Someday this could be moved to open(). */
164 if (dev->irq < 2) { 167 if (dev->irq < 2) {