diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-10 20:04:19 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-10 20:06:54 +0200 |
commit | 282482db70188a3cbc653cebbf407715373255d1 (patch) | |
tree | 37133f637f634c792b3eb9861d4d5d261e2b0192 /tests/kms_plane.c | |
parent | 329f7a3734331cb57895a675d4fc87c261f338bd (diff) |
tests: Run igt.cocci
New stuff caught.
Plus manually simplify the massive igt_fail_on_f(file == NULL, ...) to
a simple igt_assert(file). We already print the errno (if
applicapable) and the condition, which is equally informative.
Cc: Yi Sun <yi.sun@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Wendy Wang <wendy.wang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_plane.c')
-rw-r--r-- | tests/kms_plane.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/kms_plane.c b/tests/kms_plane.c index c3c0e5ef..93a05bb9 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -284,8 +284,7 @@ test_plane_panning_with_output(data_t *data, drmModeModeInfo *mode; igt_crc_t crc; - fprintf(stdout, "Testing connector %s using pipe %c plane %d\n", - igt_output_name(output), pipe_name(pipe), plane); + igt_info("Testing connector %s using pipe %c plane %d\n", igt_output_name(output), pipe_name(pipe), plane); test_init(data, pipe); |