aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qla3xxx.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/qla3xxx.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/qla3xxx.c')
-rwxr-xr-xdrivers/net/qla3xxx.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index 97c6ed07dd15..ed79aa820df2 100755
--- a/drivers/net/qla3xxx.c
+++ b/drivers/net/qla3xxx.c
@@ -3557,6 +3557,7 @@ static void ql_display_dev_info(struct net_device *ndev)
3557{ 3557{
3558 struct ql3_adapter *qdev = (struct ql3_adapter *)netdev_priv(ndev); 3558 struct ql3_adapter *qdev = (struct ql3_adapter *)netdev_priv(ndev);
3559 struct pci_dev *pdev = qdev->pdev; 3559 struct pci_dev *pdev = qdev->pdev;
3560 DECLARE_MAC_BUF(mac);
3560 3561
3561 printk(KERN_INFO PFX 3562 printk(KERN_INFO PFX
3562 "\n%s Adapter %d RevisionID %d found %s on PCI slot %d.\n", 3563 "\n%s Adapter %d RevisionID %d found %s on PCI slot %d.\n",
@@ -3582,10 +3583,8 @@ static void ql_display_dev_info(struct net_device *ndev)
3582 3583
3583 if (netif_msg_probe(qdev)) 3584 if (netif_msg_probe(qdev))
3584 printk(KERN_INFO PFX 3585 printk(KERN_INFO PFX
3585 "%s: MAC address %02x:%02x:%02x:%02x:%02x:%02x\n", 3586 "%s: MAC address %s\n",
3586 ndev->name, ndev->dev_addr[0], ndev->dev_addr[1], 3587 ndev->name, print_mac(mac, ndev->dev_addr));
3587 ndev->dev_addr[2], ndev->dev_addr[3], ndev->dev_addr[4],
3588 ndev->dev_addr[5]);
3589} 3588}
3590 3589
3591static int ql_adapter_down(struct ql3_adapter *qdev, int do_reset) 3590static int ql_adapter_down(struct ql3_adapter *qdev, int do_reset)