From 194700498014c4ee988ec133d6ce74cb0722d9f9 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Mon, 18 May 2015 18:03:47 +0000 Subject: [PATCH] Properly align the header and the data columns for netstat -r with and without the -W flag. --- usr.bin/netstat/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 675d3796f339..ab5a3ed1d7d9 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -245,7 +245,7 @@ pr_rthdr(int af1) wid_if, wid_if, "Netif", wid_expire, "Expire"); } else { - xo_emit("{T:/%-*.*s} {T:/%-*.*s} {T:/%-*.*s} {T:/%*.*s} " + xo_emit("{T:/%-*.*s} {T:/%-*.*s} {T:/%-*.*s} {T:/%*.*s} " "{T:/%*s}\n", wid_dst, wid_dst, "Destination", wid_gw, wid_gw, "Gateway", @@ -389,7 +389,7 @@ p_rtentry_sysctl(const char *name, struct rt_msghdr *rtm) p_sockaddr("destination", &addr.u_sa, &mask.u_sa, rtm->rtm_flags, wid_dst); p_sockaddr("gateway", &gw.u_sa, NULL, RTF_HOST, wid_gw); - snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:}", + snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:} ", wid_flags); p_flags(rtm->rtm_flags, buffer); if (Wflag) {