shithub: jbig2

Download patch

ref: dcf0bd8c4288ff30d152b3741bc78c9fa055e49c
parent: c1fddcf71a0cd81c02f7b52b757ea20c05f4292a
author: Ralph Giles <giles@ghostscript.com>
date: Thu Oct 29 18:00:35 EDT 2009

Make -v print only info-level messages by default.

Previously -v set the verbosity level to 9. Anything 3 or greater
prints all debug messages, which can be quite overwhelming when
individual decode elements are traced. Now the default with -v is 2.

Run jbig2dec --verbose=3 to recover the old behaviour.

--- a/jbig2dec.1
+++ b/jbig2dec.1
@@ -53,6 +53,9 @@
 .TP
 .BR -v " or " --verbose
 Report additional information about the decoding process.
+Pass just \fB-v\fR for information about the file as it's being decoded.
+This is the same as \fB--verbose=2\fR.
+Pass \fB--verbose=3\fR or higher for debugging information.
 .TP
 .BR --version
 Show program version information.
--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -155,7 +155,7 @@
 				break;
                         case 'v':
                                 if (optarg) params->verbose = atoi(optarg);
-                                else params->verbose = 9;
+                                else params->verbose = 2;
                                 break;
 			case 'h':
 			case '?':