summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/kmsprint.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index c751ac9..19cf8b7 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -68,10 +68,17 @@ static string format_connector(Connector& c)
str = sformat("Connector %u (%u) %s",
c.idx(), c.id(), c.fullname().c_str());
- if (c.connected())
+ switch (c.connector_status()) {
+ case ConnectorStatus::Connected:
str += " (connected)";
- else
+ break;
+ case ConnectorStatus::Disconnected:
str += " (disconnected)";
+ break;
+ default:
+ str += " (unknown)";
+ break;
+ }
return str;
}