diff options
author | pixel <pixel> | 2005-11-13 13:43:21 +0000 |
---|---|---|
committer | pixel <pixel> | 2005-11-13 13:43:21 +0000 |
commit | 65e8802fe20e9f882062683f287108d2e2436719 (patch) | |
tree | f27a18169b589ed102bd469589a2cf409a3baeb2 /lib | |
parent | ddd848c25e026cad919f6039a60df37c86c8332e (diff) |
Fixing various stuff, especially DVD reading.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generic.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/generic.cc b/lib/generic.cc index dac827b..1a09e70 100644 --- a/lib/generic.cc +++ b/lib/generic.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: generic.cc,v 1.12 2004-11-27 21:46:04 pixel Exp $ */ +/* $Id: generic.cc,v 1.13 2005-11-13 13:43:21 pixel Exp $ */ #include <stdio.h> #include <stdarg.h> @@ -29,8 +29,8 @@ #include <gmp.h> #endif -char verbosity = 0; -static char * heads[] = {"EE", "--", "WW", "II"}; +char verbosity = M_ERROR; +static char * heads[] = {NULL, "EE", "--", "WW", "II"}; printer_t * printer = 0; locker_t * locker = 0; @@ -38,7 +38,7 @@ void Base::printm(int level, const ugly_string & m, ...) { va_list ap; bool display = true; - if (verbosity < level) { + if (verbosity < abs(level)) { return; } @@ -48,7 +48,7 @@ void Base::printm(int level, const ugly_string & m, ...) { display = printer->printm(level, m.p, ap); if (display) { - if (level >= 0) { + if (level > 0) { fprintf(stderr, "(%s) ", heads[level]); } @@ -65,7 +65,7 @@ void Base::printm(int level, const char * m, ...) { va_list ap; bool display = true; - if (verbosity < level) { + if (verbosity < abs(level)) { return; } @@ -74,7 +74,7 @@ void Base::printm(int level, const char * m, ...) { display = printer->printm(level, m, ap); if (display) { - if (level >= 0) { + if (level > 0) { fprintf(stderr, "(%s) ", heads[level]); } |