summaryrefslogtreecommitdiff
path: root/src/keytrans
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-06-13 13:11:54 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-06-13 13:11:54 -0400
commit2fa88e2fde0f56774c76e5cbdc8ea2c67849f3c0 (patch)
treefe51e7249d0627c4428e1d674d2bb56c72331b04 /src/keytrans
parent1fe3ced39fb67b32b1cce11cd692e492221da930 (diff)
invert the sense of the loglevel test. duh.
Diffstat (limited to 'src/keytrans')
-rw-r--r--src/keytrans/gnutls-helpers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keytrans/gnutls-helpers.c b/src/keytrans/gnutls-helpers.c
index c6e4979..d5f3719 100644
--- a/src/keytrans/gnutls-helpers.c
+++ b/src/keytrans/gnutls-helpers.c
@@ -15,11 +15,13 @@
/* for exit() */
#include <unistd.h>
+/* higher levels allow more frivolous error messages through.
+ this is set with the MONKEYSPHERE_DEBUG variable */
static int loglevel = 0;
void err(int level, const char* fmt, ...) {
va_list ap;
- if (level < loglevel)
+ if (level > loglevel)
return;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);