mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
improve debug
This commit is contained in:
parent
f459320968
commit
a966d4806b
3 changed files with 16 additions and 12 deletions
|
|
@ -1207,8 +1207,8 @@ static void node_peer_added(void *data, struct pw_impl_node *peer)
|
|||
return;
|
||||
}
|
||||
|
||||
pw_log_debug("%p: peer %p/%p id:%u added mem_id:%u", impl, peer,
|
||||
impl->this.node, peer->info.id, m->id);
|
||||
pw_log_debug("%p: peer %p/%p id:%u added mem_id:%u %p %d", impl, peer,
|
||||
impl->this.node, peer->info.id, m->id, m, m->ref);
|
||||
|
||||
if (impl->resource == NULL)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -864,18 +864,22 @@ client_node_set_activation(void *_data,
|
|||
pw_loop_invoke(data->data_loop,
|
||||
do_activate_link, SPA_ID_INVALID, NULL, 0, false, link);
|
||||
|
||||
pw_log_debug("node %p: link %p: fd:%d id:%u state %p required %d, pending %d",
|
||||
node, link, signalfd,
|
||||
link->target.activation->position.clock.id,
|
||||
pw_log_debug("node %p: add link %p: memid:%u fd:%d id:%u state:%p pending:%d/%d",
|
||||
node, link, memid, signalfd, node_id,
|
||||
&link->target.activation->state[0],
|
||||
link->target.activation->state[0].required,
|
||||
link->target.activation->state[0].pending);
|
||||
link->target.activation->state[0].pending,
|
||||
link->target.activation->state[0].required);
|
||||
} else {
|
||||
link = find_activation(&data->links, node_id);
|
||||
if (link == NULL) {
|
||||
res = -ENOENT;
|
||||
goto error_exit;
|
||||
}
|
||||
pw_log_debug("node %p: remove link %p: id:%u state:%p pending:%d/%d",
|
||||
node, link, node_id,
|
||||
&link->target.activation->state[0],
|
||||
link->target.activation->state[0].pending,
|
||||
link->target.activation->state[0].required);
|
||||
clear_link(data, link);
|
||||
}
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue