]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip: iplink_ipoib.c: Remove extra spaces
authorKamal Heib <kamalheib1@gmail.com>
Sun, 27 Sep 2020 12:06:56 +0000 (15:06 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Oct 2020 05:29:05 +0000 (22:29 -0700)
Remove the extra space between the reported ipoib attrs - use only one
space instead of two.

Fixes: de0389935f8c ("iplink: Added support for the kernel IPoIB RTNL ops")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_ipoib.c

index 05dba3503373a4b3dec3971f6c6f4542d2dff911..b730c5335020cf1a843ff8b9e4a3cc6630a89b8a 100644 (file)
@@ -99,7 +99,7 @@ static void ipoib_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                snprintf(b1, sizeof(b1), "%#.4x", pkey);
                print_string(PRINT_JSON, "key", NULL, b1);
        } else {
-               fprintf(f, "pkey  %#.4x ", pkey);
+               fprintf(f, "pkey %#.4x ", pkey);
        }
 
        if (!tb[IFLA_IPOIB_MODE] ||
@@ -112,7 +112,7 @@ static void ipoib_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                mode == IPOIB_MODE_DATAGRAM ? "datagram" :
                mode == IPOIB_MODE_CONNECTED ? "connected" : "unknown";
 
-       print_string(PRINT_ANY, "mode", "mode  %s ", mode_str);
+       print_string(PRINT_ANY, "mode", "mode %s ", mode_str);
 
        if (!tb[IFLA_IPOIB_UMCAST] ||
            RTA_PAYLOAD(tb[IFLA_IPOIB_UMCAST]) < sizeof(__u16))
@@ -126,7 +126,7 @@ static void ipoib_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                snprintf(b1, sizeof(b1), "%.4x", umcast);
                print_string(PRINT_JSON, "umcast", NULL, b1);
        } else {
-               fprintf(f, "umcast  %.4x ", umcast);
+               fprintf(f, "umcast %.4x ", umcast);
        }
 }