Date: Tue, 20 Jan 2026 13:24:41 +0000 From: Johan=?utf-8?Q? S=C3=B6llv?=ander <js@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 01ffd4516f3c - stable/15 - netstat: Remove padding from cc and stack fields Message-ID: <696f8219.8588.5789dc9b@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by js: URL: https://cgit.FreeBSD.org/src/commit/?id=01ffd4516f3ce26d0b6d797818b47a974e7caabf commit 01ffd4516f3ce26d0b6d797818b47a974e7caabf Author: Johan Söllvander <js@FreeBSD.org> AuthorDate: 2026-01-15 14:21:07 +0000 Commit: Johan Söllvander <js@FreeBSD.org> CommitDate: 2026-01-20 11:47:30 +0000 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 Reviewed by: asomers, tuexen Approved by: asomers (mentor) Differential Revision: https://reviews.freebsd.org/D54709 (cherry picked from commit faa31fc0e7acc1c53bba2b69a63e9ff55d24faf7) --- usr.bin/netstat/inet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index dee245b63a87..1435de95613c 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -542,11 +542,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}",home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?696f8219.8588.5789dc9b>
