summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-08-28 10:31:53 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-08-28 10:31:53 +0300
commit2047f1f2abda04e86af1ba32826b872794106d18 (patch)
tree83041672d043c6898209f4fb9d722894cc970b81 /utils
parent252d68dc1610d4576d40b687fabbde69a487b16e (diff)
kmsprint: use connector_status
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils')
-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;
}