]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ss: sctp: Formatting tweak in sctp_show_info for locals
authorPatrick Talbert <ptalbert@redhat.com>
Sat, 3 Aug 2019 08:47:08 +0000 (10:47 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Aug 2019 15:50:11 +0000 (08:50 -0700)
'locals' output does not include a leading space so it runs up against
skmem:() output. Add a leading space to fix it.

Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/ss.c

index 01b47fed08988f7e277b421d71a36c9ba70e10c6..363b4c8d87cd36f8b112a37156e68992d9f0a39c 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -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));