]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: Remove useless width specifier in process context print
authorStefano Brivio <sbrivio@redhat.com>
Tue, 31 Oct 2017 17:47:54 +0000 (18:47 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Nov 2017 21:10:52 +0000 (22:10 +0100)
commit38509fa903d66cf13f3c8ca5010db820fb874064
treecfcfd5d16951f0013608c585eafde21939ae9a4b
parentacbe9118ce8086f765ffb0da15f80c7c01a8903a
ss: Remove useless width specifier in process context print

Both local address and service, and remote address and service
fields are already printed out in netlink_show_one() before we
start printing process context, by calling sock_addr_print()
twice.

At this point, sock_addr_print() has already forced the remote
service field to be 'serv_width' wide -- that is, 'serv_width'
width has already been consumed, before we print process
context.

Hence, it makes no sense to force the display width of process
context to be 'serv_width' wide again: previous prints have
filled up the line already. Remove the width specifier and
prefix with a space instead, to keep this consistent with fields
which are displayed after the first output line.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
misc/ss.c