[PATCH 07/12] test: Reuse cairo_test_logv()

Andrea Canciani <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/test/cairo-test.c b/test/cairo-test.c
index 1a0c845..a5ef633 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);
 }
 
-- 
1.7.5.4

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.