]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip link: xstats: fix TX IGMP reports string
authorAndrea Claudi <aclaudi@redhat.com>
Wed, 29 Jan 2020 14:31:11 +0000 (15:31 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 29 Jan 2020 18:11:35 +0000 (10:11 -0800)
This restore the string format we have before jsonification, adding a
missing space between v2 and v3 on TX IGMP reports string.

Fixes: a9bc23a79227a ("ip: bridge: add xstats json support")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_bridge.c

index bbd6f3a88ebf3497407e41afa4fe2c2775e4eab7..3e81aa059cb39b8701c2dba7e9f5a8f9c3b4a94f 100644 (file)
@@ -743,7 +743,7 @@ static void bridge_print_stats_attr(struct rtattr *attr, int ifindex)
                        print_string(PRINT_FP, NULL, "%-16s      ", "");
                        print_u64(PRINT_ANY, "tx_v1", "TX: v1 %llu ",
                                  mstats->igmp_v1reports[BR_MCAST_DIR_TX]);
-                       print_u64(PRINT_ANY, "tx_v2", "v2 %llu",
+                       print_u64(PRINT_ANY, "tx_v2", "v2 %llu ",
                                  mstats->igmp_v2reports[BR_MCAST_DIR_TX]);
                        print_u64(PRINT_ANY, "tx_v3", "v3 %llu\n",
                                  mstats->igmp_v3reports[BR_MCAST_DIR_TX]);