diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-10 04:50:02 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-10 04:50:02 +0000 |
commit | 34a88dd659e2e3b450a3b814da8d2ba272331e22 (patch) | |
tree | b18737c6f3d8bf7a749db10cb358efe188b2c422 /converter/ppm | |
parent | 95bae608d7b22cb36df870c3d182526293ab415d (diff) | |
download | netpbm-mirror-34a88dd659e2e3b450a3b814da8d2ba272331e22.tar.gz netpbm-mirror-34a88dd659e2e3b450a3b814da8d2ba272331e22.tar.xz netpbm-mirror-34a88dd659e2e3b450a3b814da8d2ba272331e22.zip |
Fix verbosity
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4236 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm')
-rw-r--r-- | converter/ppm/picttoppm.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/converter/ppm/picttoppm.c b/converter/ppm/picttoppm.c index 9cd7cbed..f1a5a743 100644 --- a/converter/ppm/picttoppm.c +++ b/converter/ppm/picttoppm.c @@ -2554,7 +2554,7 @@ expandRun(unsigned char * const block, assert(block[0] & 0x80); /* It's a run */ - if (verbose > 1) + if (verbose > 2) pm_message("Block: run of %u packed %u-byte units", runLength, pkpixsize); @@ -2633,7 +2633,7 @@ copyPixelGroup(unsigned char * const block, assert(blockLimit >= 1); /* block[0] exists */ assert((block[0] & 0x80) == 0); /* It's not a run */ - if (verbose > 1) + if (verbose > 2) pm_message("Block: %u explicit packed %u-byte units", groupLen, pkpixsize); @@ -2735,7 +2735,8 @@ interpretCompressedLine(unsigned char * const linebuf, assert(rasterCursor <= rowSize); } if (verbose > 1) - pm_message("Got %u pixels for row", rasterCursor); + pm_message("Decompressed %u bytes into %u bytes for row", + lineCursor, rasterCursor); } @@ -4491,12 +4492,12 @@ processOpcode(FILE * const ifP, static void -interpretPict(FILE * const ifP, - FILE * const ofP, - bool const noheader, - bool const fullres, - bool const quickdraw, - bool const verboseArg) { +interpretPict(FILE * const ifP, + FILE * const ofP, + bool const noheader, + bool const fullres, + bool const quickdraw, + unsigned int const verboseArg) { Byte ch; Word picSize; |