if (o->flags & TEST_DPMS)
set_dpms(o, DRM_MODE_DPMS_ON);
- printf("."); fflush(stdout);
+ igt_log("."); fflush(stdout);
if (do_flip && (o->flags & TEST_HANG)) {
handle = gem_create(drm_fd, 4096);
last_connector = o->kconnector[0];
- fprintf(stdout, "Beginning %s\n", test_name);
+ igt_log("Beginning %s\n", test_name);
if (o->flags & TEST_PAN)
o->fb_width *= 2;
if (o->flags & TEST_VBLANK)
check_final_state(o, &o->vblank_state, elapsed);
- fprintf(stdout, "\n%s: PASSED\n\n", test_name);
+ igt_log("\n%s: PASSED\n\n", test_name);
out:
kmstest_remove_fb(drm_fd, &o->fb_info[2]);
ret = drmGetCap(drm_fd, DRM_CAP_TIMESTAMP_MONOTONIC, &cap_mono);
igt_assert(ret == 0 || errno == EINVAL);
monotonic_timestamp = ret == 0 && cap_mono == 1;
- printf("Using %s timestamps\n",
+ igt_log("Using %s timestamps\n",
monotonic_timestamp ? "monotonic" : "real");
}