[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>
这个提交包含在:
@@ -3557,6 +3557,7 @@ static void ql_display_dev_info(struct net_device *ndev)
|
||||
{
|
||||
struct ql3_adapter *qdev = (struct ql3_adapter *)netdev_priv(ndev);
|
||||
struct pci_dev *pdev = qdev->pdev;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
printk(KERN_INFO PFX
|
||||
"\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)
|
||||
|
||||
if (netif_msg_probe(qdev))
|
||||
printk(KERN_INFO PFX
|
||||
"%s: MAC address %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
ndev->name, ndev->dev_addr[0], ndev->dev_addr[1],
|
||||
ndev->dev_addr[2], ndev->dev_addr[3], ndev->dev_addr[4],
|
||||
ndev->dev_addr[5]);
|
||||
"%s: MAC address %s\n",
|
||||
ndev->name, print_mac(mac, ndev->dev_addr));
|
||||
}
|
||||
|
||||
static int ql_adapter_down(struct ql3_adapter *qdev, int do_reset)
|
||||
|
在新工单中引用
屏蔽一个用户