monitor: print hub port name during info network
Signed-off-by: Jason Wang <jasowang@redhat.com> Message-id: 1422860798-17495-1-git-send-email-jasowang@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
237c255c6c
commit
a6efd6ae7b
@ -245,9 +245,12 @@ void net_hub_info(Monitor *mon)
|
||||
QLIST_FOREACH(hub, &hubs, next) {
|
||||
monitor_printf(mon, "hub %d\n", hub->id);
|
||||
QLIST_FOREACH(port, &hub->ports, next) {
|
||||
monitor_printf(mon, " \\ %s", port->nc.name);
|
||||
if (port->nc.peer) {
|
||||
monitor_printf(mon, " \\ ");
|
||||
monitor_printf(mon, ": ");
|
||||
print_net_client(mon, port->nc.peer);
|
||||
} else {
|
||||
monitor_printf(mon, "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user