From 0cd8d6dd11f87a909bcf97f0245c2672024e606e Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Mon, 21 Apr 2025 18:23:19 +0200 Subject: [PATCH] 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 3442666ce0b..86354d68013 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",