aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibmlana.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/ibmlana.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/ibmlana.c')
-rw-r--r--drivers/net/ibmlana.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ibmlana.c b/drivers/net/ibmlana.c
index eebf39acf586..91d83aca6bc7 100644
--- a/drivers/net/ibmlana.c
+++ b/drivers/net/ibmlana.c
@@ -898,6 +898,7 @@ static int ibmlana_probe(struct net_device *dev)
898 int base = 0, irq = 0, iobase = 0, memlen = 0; 898 int base = 0, irq = 0, iobase = 0, memlen = 0;
899 ibmlana_priv *priv; 899 ibmlana_priv *priv;
900 ibmlana_medium medium; 900 ibmlana_medium medium;
901 DECLARE_MAC_BUF(mac);
901 902
902 /* can't work without an MCA bus ;-) */ 903 /* can't work without an MCA bus ;-) */
903 if (MCA_bus == 0) 904 if (MCA_bus == 0)
@@ -981,11 +982,10 @@ static int ibmlana_probe(struct net_device *dev)
981 /* print config */ 982 /* print config */
982 983
983 printk(KERN_INFO "%s: IRQ %d, I/O %#lx, memory %#lx-%#lx, " 984 printk(KERN_INFO "%s: IRQ %d, I/O %#lx, memory %#lx-%#lx, "
984 "MAC address %02x:%02x:%02x:%02x:%02x:%02x.\n", 985 "MAC address %s.\n",
985 dev->name, priv->realirq, dev->base_addr, 986 dev->name, priv->realirq, dev->base_addr,
986 dev->mem_start, dev->mem_end - 1, 987 dev->mem_start, dev->mem_end - 1,
987 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], 988 print_mac(mac, dev->dev_addr));
988 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
989 printk(KERN_INFO "%s: %s medium\n", dev->name, MediaNames[priv->medium]); 989 printk(KERN_INFO "%s: %s medium\n", dev->name, MediaNames[priv->medium]);
990 990
991 /* reset board */ 991 /* reset board */