[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5481E9E0.6080809@cogentembedded.com>
Date: Fri, 05 Dec 2014 20:22:40 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: vadim4j@...il.com
CC: netdev@...r.kernel.org
Subject: Re: [PATCH iproute2 REGRESSIONS v2] ss: Fix layout/output issues
introduced by regression
On 12/05/2014 08:06 PM, vadim4j@...il.com wrote:
> [...]
>>> @@ -2912,11 +2910,12 @@ static void netlink_show_one(struct filter *f,
>>> printf("%-*s ", state_width, "UNCONN");
>>> printf("%-6d %-6d ", rq, wq);
>>>
>>> - if (resolve_services)
>>> - {
>>> + if (resolve_services) {
>>> printf("%*s:", addr_width, nl_proto_n2a(prot, prot_name,
>>> 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
--
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