diff options
author | hartleys <hartleys@visionengravers.com> | 2010-01-05 01:55:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-07 04:14:00 -0500 |
commit | 1b8e664d34f2f551fd6c2d40033d29c13551292c (patch) | |
tree | 725790558e0fccf6fe8d4aa6e8afe54b04fbef44 /drivers/net | |
parent | 595acf270e098ee3af92890253c5db41bc85de88 (diff) |
drivers/net/atl1e/atl1e_main.c: use %pM to show MAC address
Use the %pM kernel extension to display the MAC address.
The only difference in the output is that the MAC address is
shown in the usual colon-separated hex notation.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index 08f8c0969e9b..2080d444068b 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -2378,10 +2378,7 @@ static int __devinit atl1e_probe(struct pci_dev *pdev, | |||
2378 | 2378 | ||
2379 | memcpy(netdev->dev_addr, adapter->hw.mac_addr, netdev->addr_len); | 2379 | memcpy(netdev->dev_addr, adapter->hw.mac_addr, netdev->addr_len); |
2380 | memcpy(netdev->perm_addr, adapter->hw.mac_addr, netdev->addr_len); | 2380 | memcpy(netdev->perm_addr, adapter->hw.mac_addr, netdev->addr_len); |
2381 | dev_dbg(&pdev->dev, "mac address : %02x-%02x-%02x-%02x-%02x-%02x\n", | 2381 | dev_dbg(&pdev->dev, "mac address : %pM\n", adapter->hw.mac_addr); |
2382 | adapter->hw.mac_addr[0], adapter->hw.mac_addr[1], | ||
2383 | adapter->hw.mac_addr[2], adapter->hw.mac_addr[3], | ||
2384 | adapter->hw.mac_addr[4], adapter->hw.mac_addr[5]); | ||
2385 | 2382 | ||
2386 | INIT_WORK(&adapter->reset_task, atl1e_reset_task); | 2383 | INIT_WORK(&adapter->reset_task, atl1e_reset_task); |
2387 | INIT_WORK(&adapter->link_chg_task, atl1e_link_chg_task); | 2384 | INIT_WORK(&adapter->link_chg_task, atl1e_link_chg_task); |