commit | 0d0bdc8ea40caccb52cfb3e6102a7463c4aa1ad3 | [log] [tgz] |
---|---|---|
author | Marcel Holtmann <marcel@holtmann.org> | Sat Jun 12 20:59:16 2010 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Sat Jun 12 20:59:16 2010 +0200 |
tree | bb54b48158fd9a4b5c0b61fa1a2e38cd230664fc | |
parent | d2cee534646f83ee45bd1f17868c6ba38db41600 [diff] |
Enable all debug sections when SIGUSR2 is triggered
diff --git a/src/log.c b/src/log.c index ca2f6af..ed6e428 100644 --- a/src/log.c +++ b/src/log.c
@@ -92,7 +92,10 @@ void __btd_toggle_debug() { - /* FIXME: if not '*' already switch to full debug */ + struct btd_debug_desc *desc; + + for (desc = __start___debug; desc < __stop___debug; desc++) + desc->flags |= BTD_DEBUG_FLAG_PRINT; } void __btd_log_init(const char *debug, int detach)