proptest: print signed values correctly

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
main
Emil Velikov 2016-03-28 22:15:03 +01:00
parent dfd8cd4611
commit ea78c17854
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ dump_prop(uint32_t prop_id, uint64_t value)
printf("\t\tvalue:"); printf("\t\tvalue:");
if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB)) if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB))
dump_blob(value); dump_blob(value);
else if (drm_property_type_is(prop, DRM_MODE_PROP_SIGNED_RANGE))
printf(" %"PRId64"\n", value);
else else
printf(" %"PRIu64"\n", value); printf(" %"PRIu64"\n", value);