dec/tulip/de4x5: print MAC via printk format specifier
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 24 Feb 2012 03:45:55 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 20:40:59 +0000 (15:40 -0500)
Print MAC/dev_addr via printk extended format specifier %pM
instead of custom code.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/de4x5.c

index 93583408a325072b63911b399cbe42ab96cb7ed3..18b106cc6d2bbe3db4adcb8b37668443d3381b3d 100644 (file)
@@ -5234,11 +5234,7 @@ de4x5_dbg_open(struct net_device *dev)
 
     if (de4x5_debug & DEBUG_OPEN) {
        printk("%s: de4x5 opening with irq %d\n",dev->name,dev->irq);
-       printk("\tphysical address: ");
-       for (i=0;i<6;i++) {
-           printk("%2.2x:",(short)dev->dev_addr[i]);
-       }
-       printk("\n");
+       printk("\tphysical address: %pM\n", dev->dev_addr);
        printk("Descriptor head addresses:\n");
        printk("\t0x%8.8lx  0x%8.8lx\n",(u_long)lp->rx_ring,(u_long)lp->tx_ring);
        printk("Descriptor addresses:\nRX: ");