summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_crc.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 00:36:04 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 00:36:04 +0200
commite624fa8a2e1a31494c6e47a65e378e480882422d (patch)
treea79a5450e756efc23ebad0dcb1494ace10c9b66b /tests/kms_cursor_crc.c
parent351e7d395041b4b87ad28a201c81acac40cb397f (diff)
tests: sprinkle igt logging
All the cases that simply dump some debug information and couldn't be converted to some of the fancier macros. Some information output removed when it's redundant with the subtest status. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_cursor_crc.c')
-rw-r--r--tests/kms_cursor_crc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 8b4b93e8..06625eea 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -105,7 +105,7 @@ static void do_single_test(test_data_t *test_data, int x, int y)
igt_plane_t *cursor;
cairo_t *cr = igt_get_cairo_ctx(data->drm_fd, &data->primary_fb);
- printf("."); fflush(stdout);
+ igt_info("."); fflush(stdout);
/* Hardware test */
igt_paint_test_pattern(cr, test_data->screenw, test_data->screenh);
@@ -258,8 +258,8 @@ static bool prepare_crtc(test_data_t *test_data, igt_output_t *output,
test_data->pipe_crc = igt_pipe_crc_new(test_data->pipe,
INTEL_PIPE_CRC_SOURCE_AUTO);
if (!test_data->pipe_crc) {
- printf("auto crc not supported on this connector with pipe %i\n",
- test_data->pipe);
+ igt_info("auto crc not supported on this connector with pipe %i\n",
+ test_data->pipe);
return false;
}
@@ -321,15 +321,15 @@ static void run_test(data_t *data, void (*testfunc)(test_data_t *), int cursor_w
valid_tests++;
- fprintf(stdout, "Beginning %s on pipe %c, connector %s\n",
- igt_subtest_name(), pipe_name(test_data.pipe),
- igt_output_name(output));
+ igt_info("Beginning %s on pipe %c, connector %s\n",
+ igt_subtest_name(), pipe_name(test_data.pipe),
+ igt_output_name(output));
testfunc(&test_data);
- fprintf(stdout, "\n%s on pipe %c, connector %s: PASSED\n\n",
- igt_subtest_name(), pipe_name(test_data.pipe),
- igt_output_name(output));
+ igt_info("\n%s on pipe %c, connector %s: PASSED\n\n",
+ igt_subtest_name(), pipe_name(test_data.pipe),
+ igt_output_name(output));
/* cleanup what prepare_crtc() has done */
cleanup_crtc(&test_data, output);