@@ -138,15 +138,11 @@ static gboolean is_enabled(struct btd_debug_desc *desc)
return 0;
}
-void __btd_enable_debug(struct btd_debug_desc *start,
- struct btd_debug_desc *stop)
+void __btd_enable_debug(void)
{
struct btd_debug_desc *desc;
- if (start == NULL || stop == NULL)
- return;
-
- for (desc = start; desc < stop; desc++) {
+ for (desc = __start___debug; desc < __stop___debug; desc++) {
if (is_enabled(desc))
desc->flags |= BTD_DEBUG_FLAG_PRINT;
}
@@ -167,7 +163,7 @@ void __btd_log_init(const char *debug, int detach)
if (debug != NULL)
enabled = g_strsplit_set(debug, ":, ", 0);
- __btd_enable_debug(__start___debug, __stop___debug);
+ __btd_enable_debug();
bt_log_open();
@@ -36,8 +36,7 @@ struct btd_debug_desc {
unsigned int flags;
} __attribute__((aligned(8)));
-void __btd_enable_debug(struct btd_debug_desc *start,
- struct btd_debug_desc *stop);
+void __btd_enable_debug(void);
/**
* DBG:
@@ -62,8 +62,6 @@ static void add_plugin(struct bluetooth_plugin_desc *desc)
plugin->active = FALSE;
plugin->desc = desc;
- __btd_enable_debug(desc->debug_start, desc->debug_stop);
-
plugins = g_slist_insert_sorted(plugins, plugin, compare_priority);
}
@@ -17,8 +17,6 @@ struct bluetooth_plugin_desc {
int priority;
int (*init) (void);
void (*exit) (void);
- void *debug_start;
- void *debug_stop;
};
#define BLUETOOTH_PLUGIN_DEFINE(name, version, priority, init, exit) \
From: Emil Velikov <emil.velikov@collabora.com> External plugins are gone, drop the associated debug support code. --- src/log.c | 10 +++------- src/log.h | 3 +-- src/plugin.c | 2 -- src/plugin.h | 2 -- 4 files changed, 4 insertions(+), 13 deletions(-)