diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 964f14df..b7e91324 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -1633,7 +1633,8 @@ static int show_handler(struct rtnl_ctrl_data *ctrl, struct ifaddrmsg *ifa = NLMSG_DATA(n); open_json_object(NULL); - print_int(PRINT_ANY, "index", "if%d:\n", ifa->ifa_index); + print_int(PRINT_ANY, "index", "if%d:", ifa->ifa_index); + print_nl(); print_addrinfo(n, stdout); close_json_object(); return 0;