diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-28 19:21:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 16:42:39 -0800 |
commit | 28a2333413b2fbb74b35d55e1dd8c349dc825a16 (patch) | |
tree | 3edde0588ad2989eefa6c0a8a282bb370240579e /drivers/staging/et131x | |
parent | 1c7e4a7c326c916918b5a29051db4f93973e775a (diff) | |
download | linux-28a2333413b2fbb74b35d55e1dd8c349dc825a16.tar.gz linux-28a2333413b2fbb74b35d55e1dd8c349dc825a16.tar.bz2 linux-28a2333413b2fbb74b35d55e1dd8c349dc825a16.zip |
Staging: et131x_netdev.c: use %pM to shown MAC address
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>
Diffstat (limited to 'drivers/staging/et131x')
-rw-r--r-- | drivers/staging/et131x/et131x_netdev.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/staging/et131x/et131x_netdev.c b/drivers/staging/et131x/et131x_netdev.c index 24d97b4fa6fb..c63032fa88c5 100644 --- a/drivers/staging/et131x/et131x_netdev.c +++ b/drivers/staging/et131x/et131x_netdev.c @@ -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); |