From 1724a8ccd667c6ec468e2e8a01161c32bf59d706 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 24 Apr 2017 11:39:47 +0200 Subject: Rename FMT_zu to FZ_FMT_zu. Don't use FMT_zu macro for fz_throw/fz_warn, since we can portably handle '%zu' in our own printf formatting. --- source/fitz/draw-glyph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz/draw-glyph.c') diff --git a/source/fitz/draw-glyph.c b/source/fitz/draw-glyph.c index bfd0af40..ffe0d44b 100644 --- a/source/fitz/draw-glyph.c +++ b/source/fitz/draw-glyph.c @@ -455,8 +455,8 @@ fz_dump_glyph_cache_stats(fz_context *ctx) { fz_glyph_cache *cache = ctx->glyph_cache; - fprintf(stderr, "Glyph Cache Size: " FMT_zu "\n", cache->total); + fz_write_printf(ctx, fz_stderr(ctx), "Glyph Cache Size: %zu\n", cache->total); #ifndef NDEBUG - fprintf(stderr, "Glyph Cache Evictions: %d (" FMT_zu " bytes)\n", cache->num_evictions, cache->evicted); + fz_write_printf(ctx, fz_stderr(ctx), "Glyph Cache Evictions: %d (%zu bytes)\n", cache->num_evictions, cache->evicted); #endif } -- cgit v1.2.3