modetest: print more about our properties
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Sat, 21 Apr 2012 20:51:53 +0000 (17:51 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 11:32:02 +0000 (13:32 +0200)
commitd72a44c7c4f5eea9c1e5bb0c36cb9e0224b9ca22
tree09caa4cd9643019e14429e470ea8d6b3cfcce609
parent0ef7644fe5161d3b50f9550ebbf8cbbabd51706f
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
properties.

Also change the printed indentation of the modes to make the output more
readable.

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 <eugeni.dodonov@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/modetest/modetest.c