mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 06:53:26 +08:00
ip: change format of promiscuity display
Don't put it on separate line, keep it on line with link address.
This commit is contained in:
parent
ede6a3eaf5
commit
1cb6a110d6
@ -461,13 +461,13 @@ int print_linkinfo(const struct sockaddr_nl *who,
|
||||
}
|
||||
}
|
||||
|
||||
if (do_link && tb[IFLA_PROMISCUITY] && show_details)
|
||||
fprintf(fp, " promiscuity %u ",
|
||||
*(int*)RTA_DATA(tb[IFLA_PROMISCUITY]));
|
||||
|
||||
if (do_link && tb[IFLA_LINKINFO] && show_details)
|
||||
print_linktype(fp, tb[IFLA_LINKINFO]);
|
||||
|
||||
if (do_link && tb[IFLA_PROMISCUITY] && show_details)
|
||||
fprintf(fp, "\n promiscuity %u ",
|
||||
*(int*)RTA_DATA(tb[IFLA_PROMISCUITY]));
|
||||
|
||||
if (do_link && tb[IFLA_IFALIAS])
|
||||
fprintf(fp,"\n alias %s",
|
||||
rta_getattr_str(tb[IFLA_IFALIAS]));
|
||||
|
Loading…
Reference in New Issue
Block a user