]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: ipaddress: fix missing space after prefixlen
authorJulien Fortin <julien@cumulusnetworks.com>
Wed, 20 Sep 2017 20:26:51 +0000 (13:26 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 21 Sep 2017 01:05:03 +0000 (18:05 -0700)
Fixes: d0e720111aad2 ("ip: ipaddress.c: add support for json output")
Reported-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ip/ipaddress.c

index ee6c9f588e7ba60821b0d052d4734e2a67f4cf06..b8bc387a21f21e8b5cf32d1b8b25d093cdb13966 100644 (file)
@@ -1604,7 +1604,7 @@ int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n,
                                           format_host_rta(ifa->ifa_family,
                                                           rta_tb[IFA_ADDRESS]));
                }
-               print_int(PRINT_ANY, "prefixlen", "/%d", ifa->ifa_prefixlen);
+               print_int(PRINT_ANY, "prefixlen", "/%d ", ifa->ifa_prefixlen);
        }
 
        if (brief)