Commit d649a284 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by David S. Miller

drivers/net/usb/rtl8150.c: use %pM to shown MAC address

Use the %pM kernel extension to display the MAC address.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 753cdc33
...@@ -313,20 +313,17 @@ static int rtl8150_set_mac_address(struct net_device *netdev, void *p) ...@@ -313,20 +313,17 @@ static int rtl8150_set_mac_address(struct net_device *netdev, void *p)
{ {
struct sockaddr *addr = p; struct sockaddr *addr = p;
rtl8150_t *dev = netdev_priv(netdev); rtl8150_t *dev = netdev_priv(netdev);
int i;
if (netif_running(netdev)) if (netif_running(netdev))
return -EBUSY; return -EBUSY;
memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
dbg("%s: Setting MAC address to ", netdev->name); dbg("%s: Setting MAC address to %pM\n", netdev->name, netdev->dev_addr);
for (i = 0; i < 5; i++)
dbg("%02X:", netdev->dev_addr[i]);
dbg("%02X\n", netdev->dev_addr[i]);
/* Set the IDR registers. */ /* Set the IDR registers. */
set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr);
#ifdef EEPROM_WRITE #ifdef EEPROM_WRITE
{ {
int i;
u8 cr; u8 cr;
/* Get the CR contents. */ /* Get the CR contents. */
get_registers(dev, CR, 1, &cr); get_registers(dev, CR, 1, &cr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment