modetest: print more about our properties
In the future we'll have more than just connector properties, so create
a dump_prop function that can handle any property (instead of the
current dump_props function that only handles connector properties).
Also, make this function print a lot more information about the existing
Also change the printed indentation of the modes to make the output more
The previous function dump_props also segfaulted when we didn't have
enought permissions. The new function does not segfault in this case (by
checking for the return value of drmModeGetProperty).
Reviewed-by: Eugeni Dodonov <email@example.com>
Signed-off-by: Paulo Zanoni <firstname.lastname@example.org>
Signed-off-by: Daniel Vetter <email@example.com>
1 file changed