svn commit: r283071 - head/usr.bin/netstat
Luiz Otavio O Souza
loos at FreeBSD.org
Mon May 18 18:03:48 UTC 2015
Author: loos
Date: Mon May 18 18:03:47 2015
New Revision: 283071
URL: https://svnweb.freebsd.org/changeset/base/283071
Log:
Properly align the header and the data columns for netstat -r with and
without the -W flag.
Modified:
head/usr.bin/netstat/route.c
Modified: head/usr.bin/netstat/route.c
==============================================================================
--- head/usr.bin/netstat/route.c Mon May 18 16:51:05 2015 (r283070)
+++ head/usr.bin/netstat/route.c Mon May 18 18:03:47 2015 (r283071)
@@ -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, struc
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) {
More information about the svn-src-all
mailing list