diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-10-09 13:48:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-10 22:33:30 -0400 |
commit | 0373a94671be1f5c823dbfc03617418d8effd5ce (patch) | |
tree | 0c60952ed8a87886238b7d1093b45780958c33fc /net | |
parent | 68bf9f0b91ed4440951312cf7d4ffa70b9e8cf73 (diff) |
pktgen: display IPv4 address in human-readable format
It is weird to display IPv4 address in %x format, what's more,
IPv6 address is disaplayed in human-readable format too. So,
make it human-readable.
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/pktgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 98ee54963553..f9b4637e9f24 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -702,8 +702,8 @@ static int pktgen_if_show(struct seq_file *seq, void *v) | |||
702 | &pkt_dev->cur_in6_saddr, | 702 | &pkt_dev->cur_in6_saddr, |
703 | &pkt_dev->cur_in6_daddr); | 703 | &pkt_dev->cur_in6_daddr); |
704 | } else | 704 | } else |
705 | seq_printf(seq, " cur_saddr: 0x%x cur_daddr: 0x%x\n", | 705 | seq_printf(seq, " cur_saddr: %pI4 cur_daddr: %pI4\n", |
706 | pkt_dev->cur_saddr, pkt_dev->cur_daddr); | 706 | &pkt_dev->cur_saddr, &pkt_dev->cur_daddr); |
707 | 707 | ||
708 | seq_printf(seq, " cur_udp_dst: %d cur_udp_src: %d\n", | 708 | seq_printf(seq, " cur_udp_dst: %d cur_udp_src: %d\n", |
709 | pkt_dev->cur_udp_dst, pkt_dev->cur_udp_src); | 709 | pkt_dev->cur_udp_dst, pkt_dev->cur_udp_src); |