Commit 574e7488 authored by Michal Kubeček's avatar Michal Kubeček Committed by Stephen Hemminger

iplink_bond_slave: show mii_status only once

With "ip -d link show", bonding slave mii status is displayed
twice, once as a number and once as a name.

Fixes: 730d3f61 ("iplink: add support for bonding slave")
Signed-off-by: default avatarMichal Kubecek <mkubecek@suse.cz>
parent f7a45e09
......@@ -43,7 +43,6 @@ static void print_slave_mii_status(FILE *f, struct rtattr *tb)
{
unsigned int status = rta_getattr_u8(tb);
fprintf(f, "mii_status %d ", status);
if (status >= sizeof(slave_mii_status) / sizeof(slave_mii_status[0]))
fprintf(f, "mii_status %d ", status);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment