summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2016-09-04 08:41:27 +0200
committerAndrea Canciani <ranma42@gmail.com>2016-09-04 11:05:43 +0200
commita69e5af9cd62d1e8d9f503a9d74338a49e31f9cd (patch)
treea20ce7a85db0b41c0a17cab8b2d08122935d8e14
parentefc40a94939a75c78474862638647bd5363d08cf (diff)
Write debugging information to the debugging file
Some debugging functions wrote to stdout, which is inconsistent with the other debugging functions of the same groups. Instead they should write to the debugging file that they are given as input. Reviewed-by: Andrea Canciani <ranma42@gmail.com> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=95227
-rw-r--r--src/cairo-debug.c2
-rw-r--r--src/cairo-pattern.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-debug.c b/src/cairo-debug.c
index 1f32b19b3..10933a673 100644
--- a/src/cairo-debug.c
+++ b/src/cairo-debug.c
@@ -262,7 +262,7 @@ _cairo_debug_print_path (FILE *stream, const cairo_path_fixed_t *path)
box.p1.x, box.p1.y, box.p2.x, box.p2.y);
}
- printf ("\n");
+ fprintf (stream, "\n");
}
void
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 1f39c7b55..d3796e679 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -4653,7 +4653,7 @@ static void
_cairo_debug_print_raster_source_pattern (FILE *file,
const cairo_raster_source_pattern_t *raster)
{
- printf (" content: %x, size %dx%d\n", raster->content, raster->extents.width, raster->extents.height);
+ fprintf (file, " content: %x, size %dx%d\n", raster->content, raster->extents.width, raster->extents.height);
}
static void