diff options
author | Gustavo Padovan | 2016-03-22 16:42:52 -0500 |
---|---|---|
committer | Emil Velikov | 2016-03-28 16:13:29 -0500 |
commit | dfd8cd461142f3bb1e1c8d40c290af7511af7370 (patch) | |
tree | 3512982c9d2f1b8132a2fe5289b90faac8839b7b /tests/modetest | |
parent | b5c0cf0fcb29b3c460ce1e9bbbadf8894d858883 (diff) | |
download | external-libgbm-dfd8cd461142f3bb1e1c8d40c290af7511af7370.tar.gz external-libgbm-dfd8cd461142f3bb1e1c8d40c290af7511af7370.tar.xz external-libgbm-dfd8cd461142f3bb1e1c8d40c290af7511af7370.zip |
modetest: print signed values correctly
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/modetest')
-rw-r--r-- | tests/modetest/modetest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index a5ac5bd5..21d54384 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c | |||
@@ -314,6 +314,8 @@ static void dump_prop(struct device *dev, drmModePropertyPtr prop, | |||
314 | printf("\t\tvalue:"); | 314 | printf("\t\tvalue:"); |
315 | if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB)) | 315 | if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB)) |
316 | dump_blob(dev, value); | 316 | dump_blob(dev, value); |
317 | else if (drm_property_type_is(prop, DRM_MODE_PROP_SIGNED_RANGE)) | ||
318 | printf(" %"PRId64"\n", value); | ||
317 | else | 319 | else |
318 | printf(" %"PRIu64"\n", value); | 320 | printf(" %"PRIu64"\n", value); |
319 | } | 321 | } |