From 6335c5ff67202cf5b39eb929e2a0a5bb133627ba Mon Sep 17 00:00:00 2001 From: Julien Fortin Date: Wed, 20 Sep 2017 13:26:51 -0700 Subject: [PATCH] ip: ipaddress: fix missing space after prefixlen Fixes: d0e720111aad2 ("ip: ipaddress.c: add support for json output") Reported-by: Sabrina Dubroca Reviewed-by: Roopa Prabhu Signed-off-by: Julien Fortin --- ip/ipaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index ee6c9f58..b8bc387a 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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)