diff --git a/src/log.c b/src/log.c
index 4ec4633..13b99d8 100644
--- a/src/log.c
+++ b/src/log.c
if (enabled == NULL)
return 0;
- for (i = 0; enabled[i] != NULL; i++) {
- if (desc->name != NULL && g_pattern_match_simple(enabled[i],
- desc->name) == TRUE)
- return 1;
+ for (i = 0; enabled[i] != NULL; i++)
if (desc->file != NULL && g_pattern_match_simple(enabled[i],
desc->file) == TRUE)
return 1;
- }
return 0;
}
diff --git a/src/log.h b/src/log.h
index cc45cbf..14e9bfd 100644
--- a/src/log.h
+++ b/src/log.h
void __btd_toggle_debug();
struct btd_debug_desc {
- const char *name;
const char *file;
#define BTD_DEBUG_FLAG_DEFAULT (0)
#define BTD_DEBUG_FLAG_PRINT (1 << 0)