aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen2017-06-30 02:01:09 -0500
committerTomi Valkeinen2017-06-30 02:01:09 -0500
commit0801eda508d53b5e2efc280abf84e970783e9280 (patch)
treeacc240c7d89e540ca7f42f053249261010e16370
parentf6be0cba1b23a6ebf08b1414dc896d757451942c (diff)
downloadexternal-kmsxx-0801eda508d53b5e2efc280abf84e970783e9280.tar.gz
external-kmsxx-0801eda508d53b5e2efc280abf84e970783e9280.tar.xz
external-kmsxx-0801eda508d53b5e2efc280abf84e970783e9280.zip
kmsprint: print connectors even if disconnected
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--utils/kmsprint.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index 3492668..4d355fc 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -70,6 +70,8 @@ static string format_connector(Connector& c)
70 70
71 if (c.connected()) 71 if (c.connected())
72 str += " (connected)"; 72 str += " (connected)";
73 else
74 str += " (disconnected)";
73 75
74 return str; 76 return str;
75} 77}
@@ -408,9 +410,6 @@ static void print_as_tree(Card& card)
408 vector<Entry> entries; 410 vector<Entry> entries;
409 411
410 for (Connector* conn : card.get_connectors()) { 412 for (Connector* conn : card.get_connectors()) {
411 if (!conn->connected())
412 continue;
413
414 Entry& e1 = add_entry(entries); 413 Entry& e1 = add_entry(entries);
415 e1.title = format_ob(conn); 414 e1.title = format_ob(conn);
416 if (s_opts.print_props) 415 if (s_opts.print_props)