2019-11-09 10:45:41

by Tony Lu

[permalink] [raw]
Subject: [PATCH v2] tcp: remove redundant new line from tcp_event_sk_skb

This removes '\n' from trace event class tcp_event_sk_skb to avoid
redundant new blank line and make output compact.

Fixes: af4325ecc24f ("tcp: expose sk_state in tcp_retransmit_skb tracepoint")
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: Yafang Shao <[email protected]>
Signed-off-by: Tony Lu <[email protected]>
---
v1->v2:
- append Fixes tag
---
include/trace/events/tcp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h
index 2bc9960a31aa..cf97f6339acb 100644
--- a/include/trace/events/tcp.h
+++ b/include/trace/events/tcp.h
@@ -86,7 +86,7 @@ DECLARE_EVENT_CLASS(tcp_event_sk_skb,
sk->sk_v6_rcv_saddr, sk->sk_v6_daddr);
),

- TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s\n",
+ TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s",
__entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
__entry->saddr_v6, __entry->daddr_v6,
show_tcp_state_name(__entry->state))
--
2.24.0


2019-11-10 04:06:07

by David Miller

[permalink] [raw]
Subject: Re: [PATCH v2] tcp: remove redundant new line from tcp_event_sk_skb

From: Tony Lu <[email protected]>
Date: Sat, 9 Nov 2019 18:43:06 +0800

> This removes '\n' from trace event class tcp_event_sk_skb to avoid
> redundant new blank line and make output compact.
>
> Fixes: af4325ecc24f ("tcp: expose sk_state in tcp_retransmit_skb tracepoint")
> Reviewed-by: Eric Dumazet <[email protected]>
> Reviewed-by: Yafang Shao <[email protected]>
> Signed-off-by: Tony Lu <[email protected]>
> ---
> v1->v2:
> - append Fixes tag

Applied and queued up for -stable, thanks.