[gs-commits] mupdf 1.16.1.epub-prerelease-25 Limit JBIG2 output in deb
[email protected] (Sebastian Rasmussen) Tue, 5 Nov 2019 15:35:11 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit d3add6934162f29b23be466ca3bdb71660c61ddc Author: Sebastian Rasmussen <[email protected]> Date: Tue Nov 5 15:57:00 2019 +0100 Limit JBIG2 output in debug builds. Setting XCFLAGS=-DJBIG2_DEBUG when compiling will still provide the extra debug information. diff --git a/source/fitz/filter-jbig2.c b/source/fitz/filter-jbig2.c index 902b998..8962161 100644 --- a/source/fitz/filter-jbig2.c +++ b/source/fitz/filter-jbig2.c @@ -74,7 +74,7 @@ jbig2_message(const char *msg, JB2_Message_Level level, void *userdata) switch (level) { case cJB2_Message_Information: -#ifndef NDEBUG +#ifdef JBIG2_DEBUG fz_warn(state->ctx, "luratech jbig2 info: %s", msg); #endif break; @@ -350,7 +350,7 @@ error_callback(void *data, const char *msg, Jbig2Severity severity, int32_t seg_ fz_warn(ctx, "jbig2dec error: %s (segment %d)", msg, seg_idx); else if (severity == JBIG2_SEVERITY_WARNING) fz_warn(ctx, "jbig2dec warning: %s (segment %d)", msg, seg_idx); -#ifndef NDEBUG +#ifdef JBIG2_DEBUG else if (severity == JBIG2_SEVERITY_INFO) fz_warn(ctx, "jbig2dec info: %s (segment %d)", msg, seg_idx); else if (severity == JBIG2_SEVERITY_DEBUG) diff --git a/source/fitz/load-jbig2.c b/source/fitz/load-jbig2.c index 0b28599..e273872 100644 --- a/source/fitz/load-jbig2.c +++ b/source/fitz/load-jbig2.c @@ -45,7 +45,7 @@ jbig2_message(const char *msg, JB2_Message_Level level, void *userdata) switch (level) { case cJB2_Message_Information: -#ifndef NDEBUG +#ifdef JBIG2_DEBUG fz_warn(state->ctx, "luratech jbig2 info: %s", msg); #endif break; @@ -253,7 +253,7 @@ error_callback(void *data, const char *msg, Jbig2Severity severity, int32_t seg_ fz_warn(ctx, "jbig2dec error: %s (segment %d)", msg, seg_idx); else if (severity == JBIG2_SEVERITY_WARNING) fz_warn(ctx, "jbig2dec warning: %s (segment %d)", msg, seg_idx); -#ifndef NDEBUG +#ifdef JBIG2_DEBUG else if (severity == JBIG2_SEVERITY_INFO) fz_warn(ctx, "jbig2dec info: %s (segment %d)", msg, seg_idx); else if (severity == JBIG2_SEVERITY_DEBUG) http://git.ghostscript.com/?p=mupdf.git;a=commit;h=d3add6934162f29b23be466ca3bdb71660c61ddc -- MuPDF library Artifex Software, Inc.