[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250826085525.748ed6b3@elisabeth>
Date: Tue, 26 Aug 2025 08:55:25 +0200
From: Stefano Brivio <sbrivio@...hat.com>
To: Paul Wayper <pwayper@...hat.com>
Cc: Stephen Hemminger <stephen@...workplumber.org>, netdev@...r.kernel.org,
paulway@...hat.com, jbainbri@...hat.com
Subject: Re: [PATCH iproute2] ss: Don't pad the last (enabled) column
On Tue, 26 Aug 2025 10:22:37 +1000
Paul Wayper <pwayper@...hat.com> wrote:
> ss will emit spaces on the right hand side of a left-justified, enabled
> column even if it's the last column. In situations where one or more
> lines are very long - e.g. because of a large PROCESS field value - this
> causes a lot of excess output.
>
> Firstly, calculate the last enabled column. Then use this in the check
> for whether to emit trailing spaces on the last column.
>
> Also name the 'EXT' column as 'Details' and mark it as disabled by
> default, enabled when the -e or --extended options are supplied.
>
> Fixes: 59f46b7b5be86 ("ss: Introduce columns lightweight abstraction")
> Signed-off-by: Paul Wayper <paulway@...hat.com>
Thanks for the new version (this should have "v2" in the subject line).
I'll have a look and test in a bit.
--
Stefano
Powered by blists - more mailing lists