usb/kaweth: print MAC via printk format specifier
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 24 Feb 2012 03:46:00 +0000 (03:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 20:41:00 +0000 (15:41 -0500)
Print MAC/dev_addr via printk extended format specifier %pM
instead of custom code.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Acked-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kaweth.c

index d034d9c42548b2b450b13c7b69ba3da81cb97904..df2a2cf35a99a3fbd8a89ad04b0ca7a14bddfa72 100644 (file)
@@ -1098,13 +1098,7 @@ err_fw:
        dev_info(&intf->dev, "Statistics collection: %x\n", kaweth->configuration.statistics_mask);
        dev_info(&intf->dev, "Multicast filter limit: %x\n", kaweth->configuration.max_multicast_filters & ((1 << 15) - 1));
        dev_info(&intf->dev, "MTU: %d\n", le16_to_cpu(kaweth->configuration.segment_size));
-       dev_info(&intf->dev, "Read MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x\n",
-                (int)kaweth->configuration.hw_addr[0],
-                (int)kaweth->configuration.hw_addr[1],
-                (int)kaweth->configuration.hw_addr[2],
-                (int)kaweth->configuration.hw_addr[3],
-                (int)kaweth->configuration.hw_addr[4],
-                (int)kaweth->configuration.hw_addr[5]);
+       dev_info(&intf->dev, "Read MAC address %pM\n", kaweth->configuration.hw_addr);
 
        if(!memcmp(&kaweth->configuration.hw_addr,
                    &bcast_addr,