[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141205172133.GA25321@angus-think.wlc.globallogic.com>
Date: Fri, 5 Dec 2014 19:21:33 +0200
From: vadim4j@...il.com
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH iproute2 REGRESSIONS v2] ss: Fix layout/output issues
introduced by regression
On Fri, Dec 05, 2014 at 08:22:40PM +0300, Sergei Shtylyov wrote:
>>> sizeof(prot_name)));
> >>>- }
> >>>+ } else
> >>>+ printf("%*d:", addr_width, prot);
> >>>+
>
> >> Extra empty line hardly needed here. And if iproute2 follows the Linux
> >>kernel style, {} should be used in all arms of the *if* statement (since
> >>it's used in one case).
>
> >>>
> >>> if (pid == -1) {
> >>> printf("%-*s ", serv_width, "*");
>
> >You mean change to this ?
>
> > if (resolve_services) {
> > printf("%*s:", addr_width, nl_proto_n2a(prot, prot_name,
> > sizeof(prot_name)));
> > } else {
> > printf("%*d:", addr_width, prot);
> > }
>
> Yes (but indent } with tab please).
>
> >Thanks,
>
> WBR, Sergei
>
>
Thanks for comments, I have sent a v3.
Regards,
Vadim
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists