[igt-dev] [PATCH i-g-t 13/14] tools/intel_vbt_decode: Adjust DVO port printing

Ville Syrjala ville.syrjala at linux.intel.com
Fri Jul 15 20:25:19 UTC 2022


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Dump the DVO port using the more standard form:
"DVO Port: <decoded name> (<raw value>)".

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_vbt_decode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 10db394b3748..de515aa6fd25 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -971,7 +971,8 @@ static void dump_child_device(struct context *context,
 	}
 
 	printf("\t\tAIM offset: %d\n", child->addin_offset);
-	printf("\t\tDVO Port: 0x%02x (%s)\n", child->dvo_port, dvo_port(child->dvo_port));
+	printf("\t\tDVO Port: %s (0x%02x)\n",
+	       dvo_port(child->dvo_port), child->dvo_port);
 
 	printf("\t\tAIM I2C pin: 0x%02x\n", child->i2c_pin);
 	printf("\t\tAIM Slave address: 0x%02x\n", child->slave_addr);
-- 
2.35.1



More information about the igt-dev mailing list