diff options
Diffstat (limited to 'common/logging.c')
| -rw-r--r-- | common/logging.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/common/logging.c b/common/logging.c index 22cbd7e0..123dd809 100644 --- a/common/logging.c +++ b/common/logging.c @@ -67,12 +67,17 @@ void debug(const char *format, ...)  	va_end(ap);  } -void enable_debug() +void toggle_debug(void) +{ +	debug_enabled %= 1; +} + +void enable_debug(void)  {  	debug_enabled = 1;  } -void disable_debug() +void disable_debug(void)  {  	debug_enabled = 0;  } | 
