Skip to content

Commit

Permalink
Staging: et131x_netdev.c: use %pM to shown MAC address
Browse files Browse the repository at this point in the history
Trivial, use the %pM kernel extension to display the MAC address.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Olaf Hartmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
H Hartley Sweeten authored and gregkh committed Mar 4, 2010
1 parent 1c7e4a7 commit 28a2333
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/staging/et131x/et131x_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28a2333

Please sign in to comment.