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
@@ -509,7 +509,6 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
|
||||
__u64 sa;
|
||||
__u64 stopped;
|
||||
__u64 now = getCurUs();
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
seq_printf(seq,
|
||||
"Params: count %llu min_pkt_size: %u max_pkt_size: %u\n",
|
||||
@@ -554,12 +553,12 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
|
||||
|
||||
seq_puts(seq, " src_mac: ");
|
||||
|
||||
seq_printf(seq, "%s ",
|
||||
print_mac(mac, is_zero_ether_addr(pkt_dev->src_mac) ?
|
||||
pkt_dev->odev->dev_addr : pkt_dev->src_mac));
|
||||
seq_printf(seq, "%pM ",
|
||||
is_zero_ether_addr(pkt_dev->src_mac) ?
|
||||
pkt_dev->odev->dev_addr : pkt_dev->src_mac);
|
||||
|
||||
seq_printf(seq, "dst_mac: ");
|
||||
seq_printf(seq, "%s\n", print_mac(mac, pkt_dev->dst_mac));
|
||||
seq_printf(seq, "%pM\n", pkt_dev->dst_mac);
|
||||
|
||||
seq_printf(seq,
|
||||
" udp_src_min: %d udp_src_max: %d udp_dst_min: %d udp_dst_max: %d\n",
|
||||
|
Reference in New Issue
Block a user