[PATCH 04/11] drivers/net/mac89x0.c: Use print_mac

From: Joe Perches
Date: Fri Dec 14 2007 - 17:38:59 EST



Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
drivers/net/mac89x0.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/mac89x0.c b/drivers/net/mac89x0.c
index a19b595..45b56ca 100644
--- a/drivers/net/mac89x0.c
+++ b/drivers/net/mac89x0.c
@@ -584,11 +584,12 @@ static void set_multicast_list(struct net_device *dev)

static int set_mac_address(struct net_device *dev, void *addr)
{
+ DECLARE_MAC_BUF(mac);
int i;
- printk("%s: Setting MAC address to ", dev->name);
for (i = 0; i < 6; i++)
- printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]);
- printk(".\n");
+ dev->dev_addr[i] = ((unsigned char *)addr)[i];
+ printk(KERN_INFO "%s: Setting MAC address to %s\n",
+ dev->name, print_mac(mac, dev->dev_addr));
/* set the Ethernet address */
for (i=0; i < ETH_ALEN/2; i++)
writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8));
--
1.5.3.7.949.g2221a6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/