]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: remove double space before 'allmulti' flag
authorAndrea Claudi <aclaudi@redhat.com>
Fri, 26 May 2023 17:36:54 +0000 (19:36 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 26 May 2023 18:58:58 +0000 (11:58 -0700)
Current output:
$ ip -d link show vxlan0
79: vxlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether b6:f6:12:c3:2d:52 brd ff:ff:ff:ff:ff:ff promiscuity 0  allmulti 0 minmtu 68 maxmtu 65535

Resulting output:
$ ip -d link show vxlan0
79: vxlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether b6:f6:12:c3:2d:52 brd ff:ff:ff:ff:ff:ff promiscuity 0 allmulti 0 minmtu 68 maxmtu 65535

Fixes: e98683accc28 ("link: display 'allmulti' counter")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c

index 41055c43ec13f6801b832cf9f439f67f9705d32c..c428dd3d5413f0ae961c2e4e825e6fdc3d5fd103 100644 (file)
@@ -1207,7 +1207,7 @@ int print_linkinfo(struct nlmsghdr *n, void *arg)
                if (tb[IFLA_ALLMULTI])
                        print_uint(PRINT_ANY,
                                   "allmulti",
-                                  " allmulti %u ",
+                                  "allmulti %u ",
                                   rta_getattr_u32(tb[IFLA_ALLMULTI]));
 
                if (tb[IFLA_MIN_MTU])