Fixes: bad76e6b1f44 ("ip/tunnel: Abstract tunnel encapsulation options
printing")
Fixes: e2d4588331fc ("ip: link_gre.c: add json output support")
Signed-off-by: Serhey Popovych <[email protected]>
---
ip/tunnel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
}
--
1.7.10.4