[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171031180211.2bd749bf@elisabeth>
Date: Tue, 31 Oct 2017 18:02:11 +0100
From: Stefano Brivio <sbrivio@...hat.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org, Phil Sutter <phil@....cc>
Subject: Re: [iproute PATCH 3/3] ss: Fix width calculations when Netid or
State columns are missing
On Tue, 31 Oct 2017 17:55:06 +0100
Stephen Hemminger <stephen@...workplumber.org> wrote:
> On Sun, 29 Oct 2017 21:22:34 +0100
> Stefano Brivio <sbrivio@...hat.com> wrote:
>
> > + addrp_width -= netid_width + 1 * !!netid_width;
> > + addrp_width -= state_width + 1 * !!state_width;
>
> Doing !! here is being too bit tricky for code that is not performance sensitive.
> Just use an if statement or ? :
Sure.
> > @@ -4373,6 +4374,8 @@ int main(int argc, char *argv[])
> > netid_width++;
> > else if (state_width)
> > state_width++;
> > + else
> > + odd_width_pad=" ";
>
> Missing whitespace.
Oops. Thanks. I'll fix both issues in v2.
--
Stefano
Powered by blists - more mailing lists