]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip: don't colorize the master device
authorStephen Hemminger <sthemmin@microsoft.com>
Tue, 20 Feb 2018 19:08:46 +0000 (11:08 -0800)
committerDavid Ahern <dsahern@gmail.com>
Tue, 20 Feb 2018 20:16:42 +0000 (12:16 -0800)
Putting whole string "master eth0" in the interface name color
is wrong and confusing. Let's just turn color off for all attributes
of device.

Fixes: d92cc2d087b0 ("ipaddress: ll_map: Replace ll_idx_n2a() with ll_index_to_name()")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipaddress.c

index 1380453984d525c9b1780c23008da43987924862..768e2ed27e76249cb6e7b3e17ff5942d65f1e37c 100644 (file)
@@ -888,11 +888,9 @@ int print_linkinfo(const struct sockaddr_nl *who,
        if (tb[IFLA_MASTER]) {
                int master = rta_getattr_u32(tb[IFLA_MASTER]);
 
-               print_color_string(PRINT_ANY,
-                                  COLOR_IFNAME,
-                                  "master",
-                                  "master %s ",
-                                  ll_index_to_name(master));
+               print_string(PRINT_ANY,
+                            "master", "master %s ",
+                            ll_index_to_name(master));
        }
 
        if (tb[IFLA_OPERSTATE])