summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/hub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/hub.c b/net/hub.c
index 7e0f2d6f0d..ef09d5f44d 100644
--- 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");
}
}
}