git: 0cd8d6dd11f8 - stable/14 - netstat: fix table header alignment for -x
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 May 2025 19:02:58 UTC
The branch stable/14 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=0cd8d6dd11f87a909bcf97f0245c2672024e606e
commit 0cd8d6dd11f87a909bcf97f0245c2672024e606e
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-04-21 16:23:19 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-05-01 19:01:47 +0000
netstat: fix table header alignment for -x
Add a missing space before R-HIWA to align the table header with
the table contents.
Reviewed by: rrs, cc
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D49941
(cherry picked from commit 4294f7946e4cd8face2bfa16cedc5c0bf0d6c81e)
---
usr.bin/netstat/inet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 3442666ce0bd..86354d680131 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -344,7 +344,7 @@ protopr(u_long off, const char *name, int af1, int proto)
xo_emit(" {T:/%-11.11s}", "(state)");
}
if (xflag) {
- xo_emit("{T:/%-6.6s} {T:/%-6.6s} "
+ xo_emit(" {T:/%-6.6s} {T:/%-6.6s} "
"{T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} "
"{T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s}",
"R-HIWA", "S-HIWA", "R-LOWA", "S-LOWA",