tunnel: Add space between encap-dport and encap-sport in non-JSON output

Fixes: bad76e6b1f ("ip/tunnel: Abstract tunnel encapsulation options printing")
Fixes: e2d4588331 ("ip: link_gre.c: add json output support")
Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Serhey Popovych 2018-01-19 18:44:00 +02:00 committed by Stephen Hemminger
parent c9391f120e
commit b53835de38
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}