aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r--net/core/pktgen.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 99f656d35b4..18dd83c2ead 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -509,7 +509,6 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
509 __u64 sa; 509 __u64 sa;
510 __u64 stopped; 510 __u64 stopped;
511 __u64 now = getCurUs(); 511 __u64 now = getCurUs();
512 DECLARE_MAC_BUF(mac);
513 512
514 seq_printf(seq, 513 seq_printf(seq,
515 "Params: count %llu min_pkt_size: %u max_pkt_size: %u\n", 514 "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)
554 553
555 seq_puts(seq, " src_mac: "); 554 seq_puts(seq, " src_mac: ");
556 555
557 seq_printf(seq, "%s ", 556 seq_printf(seq, "%pM ",
558 print_mac(mac, is_zero_ether_addr(pkt_dev->src_mac) ? 557 is_zero_ether_addr(pkt_dev->src_mac) ?
559 pkt_dev->odev->dev_addr : pkt_dev->src_mac)); 558 pkt_dev->odev->dev_addr : pkt_dev->src_mac);
560 559
561 seq_printf(seq, "dst_mac: "); 560 seq_printf(seq, "dst_mac: ");
562 seq_printf(seq, "%s\n", print_mac(mac, pkt_dev->dst_mac)); 561 seq_printf(seq, "%pM\n", pkt_dev->dst_mac);
563 562
564 seq_printf(seq, 563 seq_printf(seq,
565 " udp_src_min: %d udp_src_max: %d udp_dst_min: %d udp_dst_max: %d\n", 564 " udp_src_min: %d udp_src_max: %d udp_dst_min: %d udp_dst_max: %d\n",