testdisplay: Untangle dump_info() from the main testing loop
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 5 Sep 2013 15:49:11 +0000 (16:49 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 30 Sep 2013 17:04:22 +0000 (18:04 +0100)
commit66477a230fba36a349783020b77ed4a030f204f5
tree81958750470315c28758b288b791ab2b23246be6
parentb9db1a6a96581645e222b6d43bd0cd795c6c7501
testdisplay: Untangle dump_info() from the main testing loop

-i is just supposed to show some information about the DRM resources.
Right now it works in a quite convoluted way. Untangle this to call
dump_info() when -i is given, exit the program and be done with it.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
tests/testdisplay.c