kmsprint: print connectors even if disconnected
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Jun 2017 07:01:09 +0000 (10:01 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Jun 2017 07:01:09 +0000 (10:01 +0300)
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
utils/kmsprint.cpp

index 349266827ce832e5a3569bcbd2b4deeb075cfe78..4d355fc52c35aace85b485cf0af3a74d93f13b63 100644 (file)
@@ -70,6 +70,8 @@ static string format_connector(Connector& c)
 
        if (c.connected())
                str += " (connected)";
 
        if (c.connected())
                str += " (connected)";
+       else
+               str += " (disconnected)";
 
        return str;
 }
 
        return str;
 }
@@ -408,9 +410,6 @@ static void print_as_tree(Card& card)
        vector<Entry> entries;
 
        for (Connector* conn : card.get_connectors()) {
        vector<Entry> entries;
 
        for (Connector* conn : card.get_connectors()) {
-               if (!conn->connected())
-                       continue;
-
                Entry& e1 = add_entry(entries);
                e1.title = format_ob(conn);
                if (s_opts.print_props)
                Entry& e1 = add_entry(entries);
                e1.title = format_ob(conn);
                if (s_opts.print_props)