mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: add more debug for device sets
This commit is contained in:
parent
733cf7835e
commit
d121d273f0
1 changed files with 7 additions and 4 deletions
|
|
@ -634,7 +634,7 @@ static void emit_node(struct impl *this, struct spa_bt_transport *t,
|
||||||
char transport[32], str_id[32], object_path[512];
|
char transport[32], str_id[32], object_path[512];
|
||||||
bool is_dyn_node = SPA_FLAG_IS_SET(id, DYNAMIC_NODE_ID_FLAG);
|
bool is_dyn_node = SPA_FLAG_IS_SET(id, DYNAMIC_NODE_ID_FLAG);
|
||||||
|
|
||||||
spa_log_debug(this->log, "node, transport:%p id:%08x factory:%s", t, id, factory_name);
|
spa_log_debug(this->log, "%p: node, transport:%p id:%08x factory:%s", this, t, id, factory_name);
|
||||||
|
|
||||||
snprintf(transport, sizeof(transport), "pointer:%p", t);
|
snprintf(transport, sizeof(transport), "pointer:%p", t);
|
||||||
items[0] = SPA_DICT_ITEM_INIT(SPA_KEY_API_BLUEZ5_TRANSPORT, transport);
|
items[0] = SPA_DICT_ITEM_INIT(SPA_KEY_API_BLUEZ5_TRANSPORT, transport);
|
||||||
|
|
@ -838,8 +838,8 @@ static const struct spa_bt_transport_events dynamic_node_transport_events = {
|
||||||
static void emit_dynamic_node(struct dynamic_node *this, struct impl *impl,
|
static void emit_dynamic_node(struct dynamic_node *this, struct impl *impl,
|
||||||
struct spa_bt_transport *t, uint32_t id, const char *factory_name, bool a2dp_duplex)
|
struct spa_bt_transport *t, uint32_t id, const char *factory_name, bool a2dp_duplex)
|
||||||
{
|
{
|
||||||
spa_log_debug(impl->log, "dynamic node, transport: %p->%p id: %08x->%08x",
|
spa_log_debug(impl->log, "%p: dynamic node, transport: %p->%p id: %08x->%08x",
|
||||||
this->transport, t, this->id, id);
|
this, this->transport, t, this->id, id);
|
||||||
|
|
||||||
if (this->transport) {
|
if (this->transport) {
|
||||||
/* Session manager don't really handles transport ptr changing. */
|
/* Session manager don't really handles transport ptr changing. */
|
||||||
|
|
@ -955,6 +955,9 @@ static void device_set_update(struct impl *this)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spa_log_debug(this->log, "%p: %s belongs to set %s leader:%d", this,
|
||||||
|
device->path, set->path, set->leader);
|
||||||
|
|
||||||
dset->path = strdup(set->path);
|
dset->path = strdup(set->path);
|
||||||
dset->leader = set->leader;
|
dset->leader = set->leader;
|
||||||
break;
|
break;
|
||||||
|
|
@ -1124,7 +1127,7 @@ static void emit_info(struct impl *this, bool full)
|
||||||
|
|
||||||
static void emit_remove_nodes(struct impl *this)
|
static void emit_remove_nodes(struct impl *this)
|
||||||
{
|
{
|
||||||
spa_log_debug(this->log, "remove nodes");
|
spa_log_debug(this->log, "%p: remove nodes", this);
|
||||||
|
|
||||||
remove_dynamic_node (&this->dyn_media_source);
|
remove_dynamic_node (&this->dyn_media_source);
|
||||||
remove_dynamic_node (&this->dyn_media_sink);
|
remove_dynamic_node (&this->dyn_media_sink);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue