summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-06-12 20:55:34 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-06-12 20:55:34 +0200
commitd2cee534646f83ee45bd1f17868c6ba38db41600 (patch)
tree29887448bcc509e31eee27160535de9e890fe8e3 /src/log.h
parenteac1d8bdf2570ef7e1548340a804c1d68549af96 (diff)
downloadbluez-d2cee534646f83ee45bd1f17868c6ba38db41600.tar.gz
Remove the broken concept of debug_enabled handling
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/log.h b/src/log.h
index 1706d2def..4e0e518ac 100644
--- a/src/log.h
+++ b/src/log.h
@@ -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)