diff options
author | David Ahern <dsahern@gmail.com> | 2017-10-17 00:24:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-18 16:10:29 +0300 |
commit | fb6ff75e18937a20dbec1eb47b5f893f38eabae4 (patch) | |
tree | 20b0da2996444629559446a8048f6c2d4d96f9b5 /include | |
parent | fcfd6dfab97006d44c7db5d6c908eac383af6649 (diff) | |
download | linux-fb6ff75e18937a20dbec1eb47b5f893f38eabae4.tar.xz |
tcp: Use pI6c in tcp tracepoint
The compact form for IPv6 addresses is more user friendly than the full
version. For example:
compact: 2001:db8:1::1
full: 2001:0db8:0001:0000:0000:0000:0000:0004i
Update the tcp tracepoint to show the compact form.
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/events/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h index 3d1cbd072b7e..1ffab6d96e94 100644 --- a/include/trace/events/tcp.h +++ b/include/trace/events/tcp.h @@ -57,7 +57,7 @@ TRACE_EVENT(tcp_retransmit_skb, } ), - TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6 daddrv6=%pI6", + TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c", __entry->sport, __entry->dport, __entry->saddr, __entry->daddr, __entry->saddr_v6, __entry->daddr_v6) ); |