diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-03-22 00:58:00 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-22 00:59:31 +0000 |
commit | bf08301ded2f44e33bebf5572587a9c7102dcc98 (patch) | |
tree | f5a72263f6df1734995ce9f4f16538aaa451332c /pdf | |
parent | e219f89eab0e937b14ac2d8838296078f5fa2b35 (diff) | |
download | mupdf-bf08301ded2f44e33bebf5572587a9c7102dcc98.tar.xz |
Fix store debugging fns so that all output goes to the same file.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_image.c | 4 | ||||
-rw-r--r-- | pdf/pdf_store.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pdf/pdf_image.c b/pdf/pdf_image.c index a756b648..7bc6109c 100644 --- a/pdf/pdf_image.c +++ b/pdf/pdf_image.c @@ -79,11 +79,11 @@ pdf_cmp_image_key(void *k0_, void *k1_) #ifndef NDEBUG static void -pdf_debug_image(void *key_) +pdf_debug_image(FILE *out, void *key_) { pdf_image_key *key = (pdf_image_key *)key_; - printf("(image %d x %d sf=%d) ", key->image->w, key->image->h, key->l2factor); + fprintf(out, "(image %d x %d sf=%d) ", key->image->w, key->image->h, key->l2factor); } #endif diff --git a/pdf/pdf_store.c b/pdf/pdf_store.c index 530229d3..9e03cff9 100644 --- a/pdf/pdf_store.c +++ b/pdf/pdf_store.c @@ -33,15 +33,15 @@ pdf_cmp_key(void *k0, void *k1) #ifndef NDEBUG static void -pdf_debug_key(void *key_) +pdf_debug_key(FILE *out, void *key_) { pdf_obj *key = (pdf_obj *)key_; if (pdf_is_indirect(key)) { - printf("(%d %d R) ", pdf_to_num(key), pdf_to_gen(key)); + fprintf(out, "(%d %d R) ", pdf_to_num(key), pdf_to_gen(key)); } else - pdf_print_obj(key); + pdf_fprint_obj(out, key, 0); } #endif |