[PATCH 01/11] drivers/net/ax88796.c: Use print_mac

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: Jeff Garzik <jgarzik@...>, Paul Gortmaker <p_gortmaker@...>, <netdev@...>
Date: Friday, December 14, 2007 - 6:34 pm

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/ax88796.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c
index 7495a9e..107c11f 100644
--- a/drivers/net/ax88796.c
+++ b/drivers/net/ax88796.c
@@ -750,14 +750,10 @@ static int ax_init_dev(struct net_device *dev, int first_init)
 	ax_NS8390_init(dev, 0);
 
 	if (first_init) {
-		printk("AX88796: %dbit, irq %d, %lx, MAC: ",
-		       ei_status.word16 ? 16:8, dev->irq, dev->base_addr);
-
-		for (i = 0; i < ETHER_ADDR_LEN; i++)
-			printk("%2.2x%c", dev->dev_addr[i],
-			       (i < (ETHER_ADDR_LEN-1) ? ':' : ' '));
-
-		printk("\n");
+		DECLARE_MAC_BUF(mac);
+		printk("AX88796: %dbit, irq %d, %lx, MAC: %s\n",
+		       ei_status.word16 ? 16:8, dev->irq, dev->base_addr,
+		       print_mac(mac, dev->dev_addr));
 	}
 
 	ret = register_netdev(dev);
-- 
1.5.3.7.949.g2221a6

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/11] drivers/net/ax88796.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 02/11] drivers/net/hplance.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 03/11] drivers/net/mac8390.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 04/11] drivers/net/mac89x0.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 05/11] drivers/net/niu.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
Re: [PATCH 05/11] drivers/net/niu.c: Use print_mac, David Miller, (Thu Dec 20, 8:07 am)
[PATCH 06/11] drivers/net/pcnet32.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 07/11] drivers/net/smc911x.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 08/11] drivers/net/sunvnet.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
Re: [PATCH 08/11] drivers/net/sunvnet.c: Use print_mac, David Miller, (Thu Dec 20, 8:06 am)
[PATCH 09/11] drivers/net/tg3.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
Re: [PATCH 09/11] drivers/net/tg3.c: Use print_mac, David Miller, (Thu Dec 20, 8:07 am)
[PATCH 10/11] drivers/net/tulip/de4x5.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)
[PATCH 11/11] drivers/net/usb/catc.c: Use print_mac, Joe Perches, (Fri Dec 14, 6:34 pm)