From de0346599c01866ef45e7e984232d1079352ef88 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 18 Jul 2016 11:44:41 +0100 Subject: Bug 696927: Move debug printfs to fz_warn. I did debate about removing these, but it looks like they are flagging up places where processing is incomplete, so I've left them in, and they will just appear on stderr now. --- source/svg/svg-run.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/svg') diff --git a/source/svg/svg-run.c b/source/svg/svg-run.c index 85f6d623..97f9a396 100644 --- a/source/svg/svg-run.c +++ b/source/svg/svg-run.c @@ -617,7 +617,7 @@ svg_parse_viewport(fz_context *ctx, svg_document *doc, fz_xml *node, svg_state * if (h_att) h = svg_parse_length(h_att, state->viewbox_h, state->fontsize); /* TODO: new transform */ - printf("push viewport: %g %g %g %g\n", x, y, w, h); + fz_warn(ctx, "push viewport: %g %g %g %g\n", x, y, w, h); state->viewport_w = w; state->viewport_h = h; @@ -638,7 +638,7 @@ svg_parse_viewbox(fz_context *ctx, svg_document *doc, fz_xml *node, svg_state *s sscanf(viewbox_att, "%g %g %g %g", &min_x, &min_y, &box_w, &box_h); /* scale and translate to fit [x y w h] to [0 0 viewport.w viewport.h] */ - printf("push viewbox: %g %g %g %g\n", min_x, min_y, box_w, box_h); + fz_warn(ctx, "push viewbox: %g %g %g %g\n", min_x, min_y, box_w, box_h); } } -- cgit v1.2.3