From a3418be8059ffc30a0858a738f8955ceae9b39ea Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Jan 2007 20:54:12 +0000 Subject: Fix toggle logic --- common/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/logging.c') 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) -- cgit