aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e100.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/e100.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff)
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r--drivers/net/e100.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index 99126564f1a0..720994b1e13a 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -2548,6 +2548,7 @@ static int __devinit e100_probe(struct pci_dev *pdev,
2548 struct net_device *netdev; 2548 struct net_device *netdev;
2549 struct nic *nic; 2549 struct nic *nic;
2550 int err; 2550 int err;
2551 DECLARE_MAC_BUF(mac);
2551 2552
2552 if(!(netdev = alloc_etherdev(sizeof(struct nic)))) { 2553 if(!(netdev = alloc_etherdev(sizeof(struct nic)))) {
2553 if(((1 << debug) - 1) & NETIF_MSG_PROBE) 2554 if(((1 << debug) - 1) & NETIF_MSG_PROBE)
@@ -2679,11 +2680,9 @@ static int __devinit e100_probe(struct pci_dev *pdev,
2679 goto err_out_free; 2680 goto err_out_free;
2680 } 2681 }
2681 2682
2682 DPRINTK(PROBE, INFO, "addr 0x%llx, irq %d, " 2683 DPRINTK(PROBE, INFO, "addr 0x%llx, irq %d, MAC addr %s\n",
2683 "MAC addr %02X:%02X:%02X:%02X:%02X:%02X\n", 2684 (unsigned long long)pci_resource_start(pdev, use_io ? 1 : 0),
2684 (unsigned long long)pci_resource_start(pdev, use_io ? 1 : 0), pdev->irq, 2685 pdev->irq, print_mac(mac, netdev->dev_addr));
2685 netdev->dev_addr[0], netdev->dev_addr[1], netdev->dev_addr[2],
2686 netdev->dev_addr[3], netdev->dev_addr[4], netdev->dev_addr[5]);
2687 2686
2688 return 0; 2687 return 0;
2689 2688