]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tunnel: Fix missing space after local/remote print
authorGal Pressman <gal@nvidia.com>
Wed, 9 Feb 2022 06:54:15 +0000 (08:54 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 10 Feb 2022 18:03:00 +0000 (10:03 -0800)
The cited commit removed the space after the local/remote tunnel print
and resulted in "broken" output:

gre remote 1.1.1.2local 1.1.1.1ttl inherit erspan_ver 0 addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Fixes: 5632cf69ad59 ("tunnel: fix clang warning")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/tunnel.c

index f2632f43babf2e43bc807259272eabdc3d21e336..224c81e42e9baf7cd5c3df07be53c7baf245187f 100644 (file)
@@ -299,6 +299,7 @@ void tnl_print_endpoint(const char *name, const struct rtattr *rta, int family)
        }
 
        print_string_name_value(name, value);
+       print_string(PRINT_FP, NULL, " ", NULL);
 }
 
 void tnl_print_gre_flags(__u8 proto,