From: Serhey Popovych Date: Fri, 19 Jan 2018 16:44:00 +0000 (+0200) Subject: tunnel: Add space between encap-dport and encap-sport in non-JSON output X-Git-Tag: v4.15.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b53835de386174a3423bd34b24a19ef01fa8a127;p=thirdparty%2Fiproute2.git tunnel: Add space between encap-dport and encap-sport in non-JSON output Fixes: bad76e6b1f44 ("ip/tunnel: Abstract tunnel encapsulation options printing") Fixes: e2d4588331fc ("ip: link_gre.c: add json output support") Signed-off-by: Serhey Popovych Signed-off-by: Stephen Hemminger --- diff --git a/ip/tunnel.c b/ip/tunnel.c index 041480465..46c910245 100644 --- a/ip/tunnel.c +++ b/ip/tunnel.c @@ -201,11 +201,11 @@ static const char *tnl_encap_str(const char *name, int enabled, int port) const char *val; if (!port) { - val = "auto"; + val = "auto "; } else if (port < 0) { val = ""; } else { - snprintf(b1, sizeof(b1), "%u", port - 1); + snprintf(b1, sizeof(b1), "%u ", port - 1); val = b1; }