diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-06-12 20:55:34 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-06-12 20:55:34 +0200 |
commit | d2cee534646f83ee45bd1f17868c6ba38db41600 (patch) | |
tree | 29887448bcc509e31eee27160535de9e890fe8e3 /src/log.h | |
parent | eac1d8bdf2570ef7e1548340a804c1d68549af96 (diff) | |
download | bluez-d2cee534646f83ee45bd1f17868c6ba38db41600.tar.gz |
Remove the broken concept of debug_enabled handling
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -30,8 +30,6 @@ void __btd_log_init(const char *debug, int detach); void __btd_log_cleanup(void); void __btd_toggle_debug(); -extern int debug_enabled; - struct btd_debug_desc { const char *name; const char *file; @@ -53,8 +51,7 @@ struct btd_debug_desc { __attribute__((used, section("__debug"), aligned(8))) = { \ .file = __FILE__, .flags = BTD_DEBUG_FLAG_DEFAULT, \ }; \ - if (debug_enabled && \ - __btd_debug_desc.flags & BTD_DEBUG_FLAG_PRINT) \ + if (__btd_debug_desc.flags & BTD_DEBUG_FLAG_PRINT) \ btd_debug("%s:%s() " fmt, \ __FILE__, __FUNCTION__ , ## arg); \ } while (0) |