diff options
| author | Jason Wang | 2015-02-02 08:06:35 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-02-06 15:06:44 +0100 |
| commit | a6efd6ae7b8696bfeb0336826b01bfe0e1840154 (patch) | |
| tree | 575c479a85dca8be7962953fbf27d97f12d4c696 /net | |
| parent | rtl8139: simplify timer logic (diff) | |
| download | qemu-a6efd6ae7b8696bfeb0336826b01bfe0e1840154.tar.gz qemu-a6efd6ae7b8696bfeb0336826b01bfe0e1840154.tar.xz qemu-a6efd6ae7b8696bfeb0336826b01bfe0e1840154.zip | |
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')
| -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"); } } } |
