summaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/inflate.c b/inflate.c
index f54eb65..199a935 100644
--- a/inflate.c
+++ b/inflate.c
@@ -310,8 +310,18 @@ int *m /* maximum lookup bits, returns actual */
memzero(c, sizeof(c));
p = b; i = n;
do {
- Tracecv(*p, (stderr, (n-i >= ' ' && n-i <= '~' ? "%c %d\n" : "0x%x %d\n"),
- n-i, *p));
+#ifdef DEBUG
+ if (1 < verbose && *p)
+ {
+ if (' ' <= n - i && n - i <= '~')
+ {
+ char ch = n - i;
+ fprintf (stderr, "%c %u\n", ch, *p);
+ }
+ else
+ fprintf (stderr, "0x%x %u\n", n - i, *p);
+ }
+#endif
c[*p]++; /* assume all entries <= BMAX */
p++; /* Can't combine with above line (Solaris bug) */
} while (--i);
@@ -572,7 +582,7 @@ inflate_codes(struct huft *tl, struct huft *td, int bl, int bd)
NEEDBITS(e)
d = w - t->v.n - ((unsigned)b & mask_bits[e]);
DUMPBITS(e)
- Tracevv((stderr,"\\[%d,%d]", w-d, n));
+ Tracevv ((stderr, "\\[%u,%u]", w - d, n));
/* do the copy */
do {