mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
improve debug
Improve log so that debug level 3 gives a reasonably readable overview of what is going on.
This commit is contained in:
parent
8ab67c5fa0
commit
aafd1e7298
33 changed files with 141 additions and 125 deletions
|
|
@ -339,7 +339,7 @@ static int impl_port_use_buffers(void *object,
|
|||
}
|
||||
b->id = i;
|
||||
b->buffer = buffers[i];
|
||||
pw_log_info("got buffer %d size %d", i, datas[0].maxsize);
|
||||
pw_log_debug("got buffer %d size %d", i, datas[0].maxsize);
|
||||
spa_list_append(&d->empty, &b->link);
|
||||
}
|
||||
d->n_buffers = n_buffers;
|
||||
|
|
|
|||
|
|
@ -419,14 +419,14 @@ static int rescan_endpoint(struct impl *impl, struct endpoint *ep)
|
|||
find.ep = ep;
|
||||
find.exclusive = exclusive;
|
||||
|
||||
pw_log_info(NAME " %p: exclusive:%d", impl, exclusive);
|
||||
pw_log_debug(NAME " %p: exclusive:%d", impl, exclusive);
|
||||
|
||||
str = spa_dict_lookup(props, PW_KEY_ENDPOINT_TARGET);
|
||||
if (str == NULL)
|
||||
str = spa_dict_lookup(props, PW_KEY_NODE_TARGET);
|
||||
if (str != NULL) {
|
||||
uint32_t path_id = atoi(str);
|
||||
pw_log_info(NAME " %p: target:%d", impl, path_id);
|
||||
pw_log_debug(NAME " %p: target:%d", impl, path_id);
|
||||
|
||||
if ((obj = sm_media_session_find_object(impl->session, path_id)) != NULL) {
|
||||
if (strcmp(obj->type, PW_TYPE_INTERFACE_Endpoint) == 0) {
|
||||
|
|
|
|||
|
|
@ -460,12 +460,12 @@ static int rescan_node(struct impl *impl, struct node *n)
|
|||
find.target = n;
|
||||
find.exclusive = exclusive;
|
||||
|
||||
pw_log_info(NAME " %p: exclusive:%d", impl, exclusive);
|
||||
pw_log_debug(NAME " %p: exclusive:%d", impl, exclusive);
|
||||
|
||||
str = spa_dict_lookup(props, PW_KEY_NODE_TARGET);
|
||||
if (str != NULL) {
|
||||
uint32_t path_id = atoi(str);
|
||||
pw_log_info(NAME " %p: target:%d", impl, path_id);
|
||||
pw_log_debug(NAME " %p: target:%d", impl, path_id);
|
||||
|
||||
if ((obj = sm_media_session_find_object(impl->session, path_id)) != NULL) {
|
||||
if (strcmp(obj->type, PW_TYPE_INTERFACE_Node) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue