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
@@ -573,7 +573,6 @@ static int __init depca_hw_init (struct net_device *dev, struct device *device)
|
||||
s16 nicsr;
|
||||
u_long ioaddr;
|
||||
u_long mem_start;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
/*
|
||||
* We are now supposed to enter this function with the
|
||||
@@ -633,7 +632,7 @@ static int __init depca_hw_init (struct net_device *dev, struct device *device)
|
||||
|
||||
printk(", h/w address ");
|
||||
status = get_hw_addr(dev);
|
||||
printk("%s", print_mac(mac, dev->dev_addr));
|
||||
printk("%pM", dev->dev_addr);
|
||||
if (status != 0) {
|
||||
printk(" which has an Ethernet PROM CRC error.\n");
|
||||
return -ENXIO;
|
||||
@@ -1841,7 +1840,6 @@ static void depca_dbg_open(struct net_device *dev)
|
||||
u_long ioaddr = dev->base_addr;
|
||||
struct depca_init *p = &lp->init_block;
|
||||
int i;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (depca_debug > 1) {
|
||||
/* Do not copy the shadow init block into shared memory */
|
||||
@@ -1880,7 +1878,7 @@ static void depca_dbg_open(struct net_device *dev)
|
||||
printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base));
|
||||
printk("Initialisation block at 0x%8.8lx(Phys)\n", lp->mem_start);
|
||||
printk(" mode: 0x%4.4x\n", p->mode);
|
||||
printk(" physical address: %s\n", print_mac(mac, p->phys_addr));
|
||||
printk(" physical address: %pM\n", p->phys_addr);
|
||||
printk(" multicast hash table: ");
|
||||
for (i = 0; i < (HASH_TABLE_LEN >> 3) - 1; i++) {
|
||||
printk("%2.2x:", p->mcast_table[i]);
|
||||
|
Reference in New Issue
Block a user