[PATCH libdrm 2/2] modetest: print signed values correctly

Gustavo Padovan gustavo at padovan.org
Tue Mar 22 21:42:52 UTC 2016


From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>

Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
 tests/modetest/modetest.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index a5ac5bd..21d5438 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -314,6 +314,8 @@ static void dump_prop(struct device *dev, drmModePropertyPtr prop,
 	printf("\t\tvalue:");
 	if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB))
 		dump_blob(dev, value);
+	else if (drm_property_type_is(prop, DRM_MODE_PROP_SIGNED_RANGE))
+		printf(" %"PRId64"\n", value);
 	else
 		printf(" %"PRIu64"\n", value);
 }
-- 
2.5.0



More information about the dri-devel mailing list