mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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>
This commit is contained in:
parent
fcfd6dfab9
commit
fb6ff75e18
@ -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->sport, __entry->dport, __entry->saddr, __entry->daddr,
|
||||||
__entry->saddr_v6, __entry->daddr_v6)
|
__entry->saddr_v6, __entry->daddr_v6)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user