diff --git a/spa/plugins/support/dbus.c b/spa/plugins/support/dbus.c index 137ac6c26..a6b5e58e8 100644 --- a/spa/plugins/support/dbus.c +++ b/spa/plugins/support/dbus.c @@ -40,7 +40,9 @@ #include #include -#define NAME "dbus" +static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.dbus"); +#undef SPA_LOG_TOPIC_DEFAULT +#define SPA_LOG_TOPIC_DEFAULT &log_topic struct impl { struct spa_handle handle; @@ -524,6 +526,8 @@ impl_init(const struct spa_handle_factory *factory, &impl_dbus, this); this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log); + spa_log_topic_init(this->log, &log_topic); + this->utils = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_LoopUtils); if (this->utils == NULL) { @@ -531,7 +535,7 @@ impl_init(const struct spa_handle_factory *factory, return -EINVAL; } - spa_log_debug(this->log, NAME " %p: initialized", this); + spa_log_debug(this->log, "%p: initialized", this); return 0; }