aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Söllvander <js@FreeBSD.org>2026-01-15 14:21:07 +0000
committerJohan Söllvander <js@FreeBSD.org>2026-01-15 14:21:07 +0000
commitfaa31fc0e7acc1c53bba2b69a63e9ff55d24faf7 (patch)
tree109db4d952805d2c5801e3b1d5e26c7a7adf8f9e
parent8bc63f01e3fabe6789960ed3b2751350ddd87865 (diff)
netstat: Remove padding from cc and stack fields
Trim white space padding that gets added libxo fields cc and stack when using -C and -c. The padding is only visible if you're using multiple stacks or congestion algorithms. PR: 292262 MFC after: 5 days Reviewed by: asomers, tuexen Approved by: asomers (mentor) Differential Revision: https://reviews.freebsd.org/D54709
-rw-r--r--usr.bin/netstat/inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 6e4811480237..ddc9a2fdd2f4 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -541,11 +541,11 @@ protopr(u_long off, const char *name, int af1, int proto)
}
if (istcp) {
if (cflag)
- xo_emit(" {:stack/%-*.*s}",
+ xo_emit(" {t:stack/%-*.*s}",
fnamelen, fnamelen, tp->xt_stack);
if (Cflag)
- xo_emit(" {:cc/%-*.*s}"
+ xo_emit(" {t:cc/%-*.*s}"
" {:snd-cwnd/%10lu}"
" {:snd-ssthresh/%10lu}"
" {:t-maxseg/%5u} {:ecn/%3s}",