]> git.proxmox.com Git - mirror_iproute2.git/commit
tipc: fix misalignment printout in non-JSON output
authorHoang Le <hoang.h.le@dektech.com.au>
Thu, 6 Dec 2018 01:40:06 +0000 (08:40 +0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 7 Dec 2018 17:24:01 +0000 (09:24 -0800)
commit853adffe13dfa0fb00a0e0b589ffba4e12fc06c2
tree1cff61f3920ebc22aa14d1537d1e5ce016ec2873
parent2e320d8b7e74d667628ede35d2ec0340347cd2af
tipc: fix misalignment printout in non-JSON output

In the commit 1304f50a5be0ed ("tipc: JSON support for showing nametable"),
introduced misalignment in the columns of the printout in non-JSON mode
compare to the list header. Add one space per column to make alignment
with the list header.

before:
$tipc name show
Type       Lower      Upper      Scope    Port       Node
1         1         1         node    4071367628

after:
$tipc name show
Type       Lower      Upper      Scope    Port       Node
1          1          1          node     4071367628

Reported-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tipc/nametable.c