Skip to contentSkip to conversation

ip: iplink_ipoib.c: Remove extra spaces

PATCH New Kamal Heib 1 participant 1 message Sep 27, 2020

Subsystems (3)
lore
Share & tools
lore

Kamal Heib

author
#0 lore raw

PATCH 1/1 ip: iplink_ipoib.c: Remove extra spaces

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")
---
 ip/iplink_ipoib.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ip/iplink_ipoib.c +3 -3
index 05dba3503373..b730c5335020 100644
@@ -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);
 	}
 }
 
Signature · 1 line
2.26.2