aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.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/mv643xx_eth.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/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index 34df02cfdbe7..e379165d8375 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -784,6 +784,7 @@ static int mv643xx_eth_open(struct net_device *dev)
784 unsigned int port_num = mp->port_num; 784 unsigned int port_num = mp->port_num;
785 unsigned int size; 785 unsigned int size;
786 int err; 786 int err;
787 DECLARE_MAC_BUF(mac);
787 788
788 /* Clear any pending ethernet port interrupts */ 789 /* Clear any pending ethernet port interrupts */
789 mv_write(MV643XX_ETH_INTERRUPT_CAUSE_REG(port_num), 0); 790 mv_write(MV643XX_ETH_INTERRUPT_CAUSE_REG(port_num), 0);
@@ -1413,8 +1414,8 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
1413 1414
1414 p = dev->dev_addr; 1415 p = dev->dev_addr;
1415 printk(KERN_NOTICE 1416 printk(KERN_NOTICE
1416 "%s: port %d with MAC address %02x:%02x:%02x:%02x:%02x:%02x\n", 1417 "%s: port %d with MAC address %s\n",
1417 dev->name, port_num, p[0], p[1], p[2], p[3], p[4], p[5]); 1418 dev->name, port_num, print_mac(mac, p));
1418 1419
1419 if (dev->features & NETIF_F_SG) 1420 if (dev->features & NETIF_F_SG)
1420 printk(KERN_NOTICE "%s: Scatter Gather Enabled\n", dev->name); 1421 printk(KERN_NOTICE "%s: Scatter Gather Enabled\n", dev->name);