summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-13 20:54:12 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-13 20:54:12 +0000
commita3418be8059ffc30a0858a738f8955ceae9b39ea (patch)
treed9d027894085f601346694f8ce5ffaa67e48758b /common
parent7ebe01c309433eb7ef6356b810e9b9b543028711 (diff)
Fix toggle logic
Diffstat (limited to 'common')
-rw-r--r--common/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/logging.c b/common/logging.c
index 79d8d362..52fd8071 100644
--- a/common/logging.c
+++ b/common/logging.c
@@ -74,7 +74,7 @@ void debug(const char *format, ...)
void toggle_debug(void)
{
- debug_enabled %= 1;
+ debug_enabled = (debug_enabled + 1) % 2;
}
void enable_debug(void)