add some more debug

This commit is contained in:
Wim Taymans 2020-06-05 16:44:35 +02:00
parent c13c028ebb
commit 2462cac4f2
2 changed files with 3 additions and 1 deletions

View file

@ -302,6 +302,7 @@ static void client_free(void *data)
struct client_data *this = data; struct client_data *this = data;
struct pw_impl_client *client = this->client; struct pw_impl_client *client = this->client;
pw_log_debug(NAME" %p: free", this);
spa_list_remove(&this->protocol_link); spa_list_remove(&this->protocol_link);
if (this->source) if (this->source)

View file

@ -239,7 +239,7 @@ struct pw_protocol_native_connection *pw_protocol_native_connection_new(struct p
this = &impl->this; this = &impl->this;
pw_log_debug("connection %p: new", this); pw_log_debug("connection %p: new fd:%d", this, fd);
this->fd = fd; this->fd = fd;
spa_hook_list_init(&this->listener_list); spa_hook_list_init(&this->listener_list);
@ -266,6 +266,7 @@ no_mem:
int pw_protocol_native_connection_set_fd(struct pw_protocol_native_connection *conn, int fd) int pw_protocol_native_connection_set_fd(struct pw_protocol_native_connection *conn, int fd)
{ {
pw_log_debug("connection %p: fd:%d", conn, fd);
conn->fd = fd; conn->fd = fd;
return 0; return 0;
} }