diff options
author | Jason Wang <jasowang@redhat.com> | 2015-02-02 15:06:35 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-02-06 14:06:44 +0000 |
commit | a6efd6ae7b8696bfeb0336826b01bfe0e1840154 (patch) | |
tree | 575c479a85dca8be7962953fbf27d97f12d4c696 /net/hub.c | |
parent | 237c255c6cefefda9c5dd077860cfa20a77d9a6a (diff) |
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>
Diffstat (limited to 'net/hub.c')
-rw-r--r-- | net/hub.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); } } } |