Message ID | 1516380243-32568-2-git-send-email-serhe.popovych@gmail.com |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
Series | ip/tunnel: Minor cleanups and improvements | expand |
diff --git a/ip/tunnel.c b/ip/tunnel.c index 0414804..46c9102 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; }
Fixes: bad76e6b1f44 ("ip/tunnel: Abstract tunnel encapsulation options printing") Fixes: e2d4588331fc ("ip: link_gre.c: add json output support") Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> --- ip/tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)