summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2016-03-28 22:15:03 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-03-28 22:15:03 +0100
commitea78c17854ad1b9d155dab66c99777e513943083 (patch)
tree64b970edb28ca41cfe1f521031900c0063985bc7
parentdfd8cd461142f3bb1e1c8d40c290af7511af7370 (diff)
proptest: print signed values correctly
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--tests/proptest/proptest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/proptest/proptest.c b/tests/proptest/proptest.c
index 4bd08665461c..5abbf0294d3a 100644
--- a/tests/proptest/proptest.c
+++ b/tests/proptest/proptest.c
@@ -151,6 +151,8 @@ dump_prop(uint32_t prop_id, uint64_t value)
printf("\t\tvalue:");
if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB))
dump_blob(value);
+ else if (drm_property_type_is(prop, DRM_MODE_PROP_SIGNED_RANGE))
+ printf(" %"PRId64"\n", value);
else
printf(" %"PRIu64"\n", value);