Staging: et131x_netdev.c: use %pM to shown MAC address
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 29 Dec 2009 00:21:34 +0000 (19:21 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:39 +0000 (16:42 -0800)
Trivial, use the %pM kernel extension to display the MAC address.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Olaf Hartmann <o.hartmann@telovital.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et131x_netdev.c

index 24d97b4fa6fbb7e8dab8ca2073389f6816c0cb51..c63032fa88c5910c7be2955cd7934cf9cd17635b 100644 (file)
@@ -674,12 +674,8 @@ int et131x_set_mac_addr(struct net_device *netdev, void *new_mac)
 
        memcpy(netdev->dev_addr, address->sa_data, netdev->addr_len);
 
-       printk(KERN_INFO
-               "%s: Setting MAC address to %02x:%02x:%02x:%02x:%02x:%02x\n",
-                       netdev->name,
-                       netdev->dev_addr[0], netdev->dev_addr[1],
-                       netdev->dev_addr[2], netdev->dev_addr[3],
-                       netdev->dev_addr[4], netdev->dev_addr[5]);
+       printk(KERN_INFO "%s: Setting MAC address to %pM\n",
+                       netdev->name, netdev->dev_addr);
 
        /* Free Rx DMA memory */
        et131x_adapter_memory_free(adapter);