projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237c255
)
monitor: print hub port name during info network
author
Jason Wang
<jasowang@redhat.com>
Mon, 2 Feb 2015 07:06:35 +0000
(15:06 +0800)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 6 Feb 2015 14:06:44 +0000
(14:06 +0000)
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>
net/hub.c
patch
|
blob
|
history
diff --git
a/net/hub.c
b/net/hub.c
index 7e0f2d6f0df41bb981d55a700308ff592b989bdc..ef09d5f44d7bc0d20ce676016ae4ee1ba3c992f5 100644
(file)
--- a/
net/hub.c
+++ b/
net/hub.c
@@
-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");
}
}
}