[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180214140525.10351021@xeon-e3>
Date: Wed, 14 Feb 2018 14:05:25 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Serhey Popovych <serhe.popovych@...il.com>
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [PATCH iproute2-next v2 2/9] ipaddress: ll_map: Replace
ll_idx_n2a() with ll_index_to_name()
On Wed, 14 Feb 2018 23:33:37 +0200
Serhey Popovych <serhe.popovych@...il.com> wrote:
> if (tb[IFLA_MASTER]) {
> - SPRINT_BUF(b1);
> + int master = rta_getattr_u32(tb[IFLA_MASTER]);
>
> print_string(PRINT_ANY,
> "master",
> "master %s ",
> - ll_idx_n2a(rta_getattr_u32(tb[IFLA_MASTER]), b1));
> + ll_index_to_name(master));
Since this is an interface name, it should be printed in the correct color.
Sorry, missed that in the recent changes.
Powered by blists - more mailing lists