From 80f3c7fcf9ec35d7b8f5f269adb8a1770f66ab7b Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 13 Dec 2011 12:30:16 -0600 Subject: [PATCH] Adjust debug output for connectors to save vertical log space --- .../accelerants/radeon_hd/connector.cpp | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/add-ons/accelerants/radeon_hd/connector.cpp b/src/add-ons/accelerants/radeon_hd/connector.cpp index 63b81351a9..2dcdbcb9c8 100644 --- a/src/add-ons/accelerants/radeon_hd/connector.cpp +++ b/src/add-ons/accelerants/radeon_hd/connector.cpp @@ -1006,14 +1006,27 @@ debug_connectors() ERROR(" - id: %" B_PRIu16 "\n", encoderID); ERROR(" - type: %s\n", encoder_name_lookup(encoderID)); - ERROR(" - is external: %s\n", - gConnector[id]->encoder.isExternal ? "true" : "false"); - ERROR(" - is HDMI: %s\n", - gConnector[id]->encoder.isHDMI ? "true" : "false"); - ERROR(" - is TV: %s\n", - gConnector[id]->encoder.isTV ? "true" : "false"); - ERROR(" - is DP bridge: %s\n", - gConnector[id]->encoder.isDPBridge ? "true" : "false"); + + bool attribute = false; + ERROR(" - attributes:\n"); + if (gConnector[id]->encoder.isExternal == true) { + attribute = true; + ERROR(" * is external\n"); + } + if (gConnector[id]->encoder.isHDMI == true) { + attribute = true; + ERROR(" * is HDMI\n"); + } + if (gConnector[id]->encoder.isTV == true) { + attribute = true; + ERROR(" * is TV\n"); + } + if (gConnector[id]->encoder.isDPBridge == true) { + attribute = true; + ERROR(" * is DisplayPort bridge\n"); + } + if (attribute == false) + ERROR(" * no extra attributes\n"); } } ERROR("==========================================\n");