net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were a few things that had conflicts which I have just dropped for now, no harm done. I've built an allyesconfig with this and looked at the files that weren't built very carefully, but it's a huge patch. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0c68ae2605
commit
e174961ca1
@@ -485,7 +485,6 @@ static void update_mac_address(struct net_device *dev)
|
||||
static int set_mac_address(struct net_device *dev, void* addr)
|
||||
{
|
||||
struct sockaddr *address = addr;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (!is_valid_ether_addr(address->sa_data))
|
||||
return -EADDRNOTAVAIL;
|
||||
@@ -493,8 +492,8 @@ static int set_mac_address(struct net_device *dev, void* addr)
|
||||
memcpy(dev->dev_addr, address->sa_data, dev->addr_len);
|
||||
update_mac_address(dev);
|
||||
|
||||
printk("%s: Setting MAC address to %s\n", dev->name,
|
||||
print_mac(mac, dev->dev_addr));
|
||||
printk("%s: Setting MAC address to %pM\n", dev->name,
|
||||
dev->dev_addr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -978,7 +977,6 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add
|
||||
struct at91_private *lp;
|
||||
unsigned int val;
|
||||
int res;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
dev = alloc_etherdev(sizeof(struct at91_private));
|
||||
if (!dev)
|
||||
@@ -1083,11 +1081,11 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add
|
||||
}
|
||||
|
||||
/* Display ethernet banner */
|
||||
printk(KERN_INFO "%s: AT91 ethernet at 0x%08x int=%d %s%s (%s)\n",
|
||||
printk(KERN_INFO "%s: AT91 ethernet at 0x%08x int=%d %s%s (%pM)\n",
|
||||
dev->name, (uint) dev->base_addr, dev->irq,
|
||||
at91_emac_read(AT91_EMAC_CFG) & AT91_EMAC_SPD ? "100-" : "10-",
|
||||
at91_emac_read(AT91_EMAC_CFG) & AT91_EMAC_FD ? "FullDuplex" : "HalfDuplex",
|
||||
print_mac(mac, dev->dev_addr));
|
||||
dev->dev_addr);
|
||||
if ((phy_type == MII_DM9161_ID) || (lp->phy_type == MII_DM9161A_ID))
|
||||
printk(KERN_INFO "%s: Davicom 9161 PHY %s\n", dev->name, (lp->phy_media == PORT_FIBRE) ? "(Fiber)" : "(Copper)");
|
||||
else if (phy_type == MII_LXT971A_ID)
|
||||
|
Reference in New Issue
Block a user