From 6dfb12c7d7c4ada716c86dbb9af3446d9880ed36 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Thu, 27 Oct 2011 09:49:25 +0200 Subject: [PATCH] test: Reuse cairo_test_logv() cairo_test_log() can be implemented on top of cairo_test_logv() to ensure that their behavior is consistent. --- test/cairo-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/cairo-test.c b/test/cairo-test.c index 1a0c84510..a5ef6336a 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -261,10 +261,9 @@ void cairo_test_log (const cairo_test_context_t *ctx, const char *fmt, ...) { va_list va; - FILE *file = ctx && ctx->log_file ? ctx->log_file : stderr; va_start (va, fmt); - vfprintf (file, fmt, va); + cairo_test_logv (ctx, fmt, va); va_end (va); }