diff options
-rw-r--r-- | common/logging.c | 2 |
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) |