[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>
This commit is contained in:
committed by
David S. Miller
parent
95ea36275f
commit
0795af5729
@ -1934,6 +1934,7 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
|
||||
unsigned long reg_addr,reg_len;
|
||||
struct amd8111e_priv* lp;
|
||||
struct net_device* dev;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
err = pci_enable_device(pdev);
|
||||
if(err){
|
||||
@ -2006,7 +2007,7 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
|
||||
|
||||
/* Initializing MAC address */
|
||||
for(i = 0; i < ETH_ADDR_LEN; i++)
|
||||
dev->dev_addr[i] =readb(lp->mmio + PADR + i);
|
||||
dev->dev_addr[i] = readb(lp->mmio + PADR + i);
|
||||
|
||||
/* Setting user defined parametrs */
|
||||
lp->ext_phy_option = speed_duplex[card_idx];
|
||||
@ -2075,11 +2076,10 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
|
||||
/* display driver and device information */
|
||||
|
||||
chip_version = (readl(lp->mmio + CHIPID) & 0xf0000000)>>28;
|
||||
printk(KERN_INFO "%s: AMD-8111e Driver Version: %s\n", dev->name,MODULE_VERS);
|
||||
printk(KERN_INFO "%s: [ Rev %x ] PCI 10/100BaseT Ethernet ", dev->name, chip_version);
|
||||
for (i = 0; i < 6; i++)
|
||||
printk("%2.2x%c",dev->dev_addr[i],i == 5 ? ' ' : ':');
|
||||
printk( "\n");
|
||||
printk(KERN_INFO "%s: AMD-8111e Driver Version: %s\n",
|
||||
dev->name,MODULE_VERS);
|
||||
printk(KERN_INFO "%s: [ Rev %x ] PCI 10/100BaseT Ethernet %s\n",
|
||||
dev->name, chip_version, print_mac(mac, dev->dev_addr));
|
||||
if (lp->ext_phy_id)
|
||||
printk(KERN_INFO "%s: Found MII PHY ID 0x%08x at address 0x%02x\n",
|
||||
dev->name, lp->ext_phy_id, lp->ext_phy_addr);
|
||||
|
Reference in New Issue
Block a user