Skip to contentSkip to conversation

ss: sctp: Formatting tweak in sctp_show_info for locals

PATCH New Patrick Talbert 1 participant 1 message Aug 3, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ss: sctp: Formatting tweak in sctp_show_info for locals

'locals' output does not include a leading space so it runs up against skmem:() output. Add a leading space to fix it.

---
 misc/ss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
misc/ss.c +1 -1
index 0927b192..5e70709d 100644
@@ -2937,7 +2937,7 @@ static void sctp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r,
 		len = RTA_PAYLOAD(tb[INET_DIAG_LOCALS]);
 		sa = RTA_DATA(tb[INET_DIAG_LOCALS]);
 
-		out("locals:%s", format_host_sa(sa));
+		out(" locals:%s", format_host_sa(sa));
 		for (sa++, len -= sizeof(*sa); len > 0; sa++, len -= sizeof(*sa))
 			out(",%s", format_host_sa(sa));
 
Signature · 1 line
2.18.1