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
@ -389,7 +389,6 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr)
|
||||
unsigned long timeout;
|
||||
static int version_printed;
|
||||
#endif
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
/* Query the adapter PIO base port which will return
|
||||
* indication of where MMIO was placed. We also have a
|
||||
@ -703,8 +702,7 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr)
|
||||
channel_def[cardpresent - 1], adapter_def(ti->adapter_type));
|
||||
DPRINTK("using irq %d, PIOaddr %hx, %dK shared RAM.\n",
|
||||
irq, PIOaddr, ti->mapped_ram_size / 2);
|
||||
DPRINTK("Hardware address : %s\n",
|
||||
print_mac(mac, dev->dev_addr));
|
||||
DPRINTK("Hardware address : %pM\n", dev->dev_addr);
|
||||
if (ti->page_mask)
|
||||
DPRINTK("Shared RAM paging enabled. "
|
||||
"Page size: %uK Shared Ram size %dK\n",
|
||||
@ -1741,8 +1739,6 @@ static void tr_rx(struct net_device *dev)
|
||||
void __iomem *trhhdr = rbuf + offsetof(struct rec_buf, data);
|
||||
u8 saddr[6];
|
||||
u8 daddr[6];
|
||||
DECLARE_MAC_BUF(mac);
|
||||
DECLARE_MAC_BUF(mac2);
|
||||
int i;
|
||||
for (i = 0 ; i < 6 ; i++)
|
||||
saddr[i] = readb(trhhdr + SADDR_OFST + i);
|
||||
@ -1750,9 +1746,9 @@ static void tr_rx(struct net_device *dev)
|
||||
daddr[i] = readb(trhhdr + DADDR_OFST + i);
|
||||
DPRINTK("Probably non-IP frame received.\n");
|
||||
DPRINTK("ssap: %02X dsap: %02X "
|
||||
"saddr: %s daddr: %$s\n",
|
||||
"saddr: %pM daddr: %pM\n",
|
||||
readb(llc + SSAP_OFST), readb(llc + DSAP_OFST),
|
||||
print_mac(mac, saddr), print_mac(mac2, daddr));
|
||||
saddr, daddr);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user