diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-03-22 18:42:52 -0300 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-03-28 22:13:29 +0100 |
commit | dfd8cd461142f3bb1e1c8d40c290af7511af7370 (patch) | |
tree | 3512982c9d2f1b8132a2fe5289b90faac8839b7b /tests | |
parent | b5c0cf0fcb29b3c460ce1e9bbbadf8894d858883 (diff) | |
download | libdrm-dfd8cd461142f3bb1e1c8d40c290af7511af7370.tar.gz libdrm-dfd8cd461142f3bb1e1c8d40c290af7511af7370.tar.bz2 libdrm-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')
-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, 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); } |