[Intel-gfx] [PATCH 3/4] lib/igt_* Use igt macros in igt libaries
Chris Wilson
chris at chris-wilson.co.uk
Tue Aug 26 19:48:22 CEST 2014
On Tue, Aug 26, 2014 at 07:36:13PM +0200, Daniel Vetter wrote:
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index a414d960d24b..0497042eac0c 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -202,23 +202,15 @@ void kmstest_dump_mode(drmModeModeInfo *mode)
> {
> const char *stereo = mode_stereo_name(mode);
>
> - printf(" %s %d %d %d %d %d %d %d %d %d 0x%x 0x%x %d%s%s%s\n",
> - mode->name,
> - mode->vrefresh,
> - mode->hdisplay,
> - mode->hsync_start,
> - mode->hsync_end,
> - mode->htotal,
> - mode->vdisplay,
> - mode->vsync_start,
> - mode->vsync_end,
> - mode->vtotal,
> - mode->flags,
> - mode->type,
> - mode->clock,
> - stereo ? " (3D:" : "",
> - stereo ? stereo : "",
> - stereo ? ")" : "");
> + igt_info(" %s %d %d %d %d %d %d %d %d %d 0x%x 0x%x %d%s%s%s\n",
> + mode->name, mode->vrefresh,
> + mode->hdisplay, mode->hsync_start,
> + mode->hsync_end, mode->htotal,
> + mode->vdisplay, mode->vsync_start,
> + mode->vsync_end, mode->vtotal,
> + mode->flags, mode->type, mode->clock,
> + stereo ? " (3D:" : "",
> + stereo ? stereo : "", stereo ? ")" : "");
> fflush(stdout);
fflush(stdout) is a non-sequitur when converting to opaque logging.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list