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:
Stephen Hemminger 2013-02-05 08:16:28 -08:00
parent ede6a3eaf5
commit 1cb6a110d6

View File

@ -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]));