OSDN Git Service

vbltest: Use util_open()
authorThierry Reding <treding@nvidia.com>
Wed, 9 Dec 2015 17:37:48 +0000 (18:37 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 18 Dec 2015 17:44:22 +0000 (17:44 +0000)
commitb020b02f841af6c04d97d484db0ecf1149b93abf
tree5fbaf520ac2e243c8c4ac6dbf3e116d4b16f5274
parent6223481b8de901b5356afdef538726f1fb77bfd1
vbltest: Use util_open()

Use the new util_open() helper instead of open-coding the method for
finding a usable device. While at it, this adds -D and -M command-line
options to vbltest to make its usage more consistent with its siblings
modetest and proptest.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/vbltest/Makefile.am
tests/vbltest/vbltest.c