mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
debug: demote some info log to debug
This commit is contained in:
parent
5faf043f6c
commit
b2790f610c
3 changed files with 12 additions and 12 deletions
|
|
@ -807,12 +807,12 @@ struct pw_loop *pw_context_acquire_loop(struct pw_context *context, const struct
|
|||
name = props ? spa_dict_lookup(props, PW_KEY_NODE_LOOP_NAME) : NULL;
|
||||
klass = props ? spa_dict_lookup(props, PW_KEY_NODE_LOOP_CLASS) : NULL;
|
||||
|
||||
pw_log_info("%p: looking for name:'%s' class:'%s'", context, name, klass);
|
||||
pw_log_debug("%p: looking for name:'%s' class:'%s'", context, name, klass);
|
||||
|
||||
if ((impl->n_data_loops == 0) ||
|
||||
(name && fnmatch(name, context->main_loop->name, FNM_EXTMATCH) == 0) ||
|
||||
(klass && fnmatch(klass, "main", FNM_EXTMATCH) == 0)) {
|
||||
pw_log_info("%p: using main loop num-data-loops:%d", context, impl->n_data_loops);
|
||||
pw_log_debug("%p: using main loop num-data-loops:%d", context, impl->n_data_loops);
|
||||
return context->main_loop;
|
||||
}
|
||||
|
||||
|
|
@ -829,7 +829,7 @@ void pw_context_release_loop(struct pw_context *context, struct pw_loop *loop)
|
|||
for (i = 0; i < impl->n_data_loops; i++) {
|
||||
struct data_loop *l = &impl->data_loops[i];
|
||||
if (l->impl->loop == loop) {
|
||||
pw_log_info("release name:'%s' class:'%s' last_used:%"PRIu64,
|
||||
pw_log_debug("release name:'%s' class:'%s' last_used:%"PRIu64,
|
||||
l->impl->loop->name, l->impl->class, l->last_used);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ static int do_negotiate(struct pw_impl_link *this)
|
|||
dir[0] = pw_direction_as_string(info[0]->port->direction),
|
||||
dir[1] = pw_direction_as_string(info[1]->port->direction),
|
||||
|
||||
pw_log_info("%p: %s:%d -> %s:%d", this, dir[0], state[0], dir[1], state[1]);
|
||||
pw_log_debug("%p: %s:%d -> %s:%d", this, dir[0], state[0], dir[1], state[1]);
|
||||
|
||||
if (state[0] != PW_IMPL_PORT_STATE_CONFIGURE && state[1] != PW_IMPL_PORT_STATE_CONFIGURE)
|
||||
return 0;
|
||||
|
|
@ -540,7 +540,7 @@ static int do_negotiate(struct pw_impl_link *this)
|
|||
SPA_POD_OBJECT_ID(format) = SPA_PARAM_Format;
|
||||
pw_log_debug("%p: doing set format %p fixated:%d", this,
|
||||
format, spa_pod_is_fixated(format));
|
||||
pw_log_pod(SPA_LOG_LEVEL_INFO, format);
|
||||
pw_log_pod(SPA_LOG_LEVEL_DEBUG, format);
|
||||
|
||||
if (state[1] == PW_IMPL_PORT_STATE_CONFIGURE) {
|
||||
pw_log_debug("%p: doing set format on %s", this, dir[1]);
|
||||
|
|
@ -821,7 +821,7 @@ int pw_impl_link_activate(struct pw_impl_link *this)
|
|||
goto error_clean;
|
||||
|
||||
impl->activated = true;
|
||||
pw_log_info("(%s) activated", this->name);
|
||||
pw_log_debug("(%s) activated", this->name);
|
||||
link_update_state(this, PW_LINK_STATE_ACTIVE, 0, NULL);
|
||||
|
||||
return 0;
|
||||
|
|
@ -1005,7 +1005,7 @@ int pw_impl_link_deactivate(struct pw_impl_link *this)
|
|||
port_set_io(this, &impl->input, SPA_IO_Buffers, NULL, 0);
|
||||
|
||||
impl->activated = false;
|
||||
pw_log_info("(%s) deactivated", this->name);
|
||||
pw_log_debug("(%s) deactivated", this->name);
|
||||
|
||||
if (this->info.state < PW_LINK_STATE_PAUSED || this->destroyed)
|
||||
link_update_state(this, PW_LINK_STATE_INIT, 0, NULL);
|
||||
|
|
|
|||
|
|
@ -1879,7 +1879,7 @@ int pw_impl_port_recalc_latency(struct pw_impl_port *port)
|
|||
else
|
||||
changed = spa_latency_info_compare(current, &latency) != 0;
|
||||
|
||||
pw_log_info("port %d: %s %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64,
|
||||
pw_log_debug("port %d: %s %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64,
|
||||
port->info.id, changed ? "set" : "keep",
|
||||
pw_direction_as_string(latency.direction),
|
||||
latency.min_quantum, latency.max_quantum,
|
||||
|
|
@ -1950,7 +1950,7 @@ int pw_impl_port_recalc_tag(struct pw_impl_port *port)
|
|||
|
||||
changed = spa_tag_compare(old, param);
|
||||
|
||||
pw_log_info("port %d: %p %s %s tag %p",
|
||||
pw_log_debug("port %d: %p %s %s tag %p",
|
||||
port->info.id, port, changed ? "set" : "keep",
|
||||
pw_direction_as_string(direction), param);
|
||||
|
||||
|
|
@ -1958,7 +1958,7 @@ int pw_impl_port_recalc_tag(struct pw_impl_port *port)
|
|||
free(old);
|
||||
port->tag[direction] = param ? spa_pod_copy(param) : NULL;
|
||||
if (param)
|
||||
pw_log_pod(SPA_LOG_LEVEL_INFO, param);
|
||||
pw_log_pod(SPA_LOG_LEVEL_DEBUG, param);
|
||||
}
|
||||
spa_pod_dynamic_builder_clean(&b);
|
||||
|
||||
|
|
@ -2010,7 +2010,7 @@ int pw_impl_port_recalc_capability(struct pw_impl_port *port)
|
|||
|
||||
changed = spa_pod_memcmp(old, param);
|
||||
|
||||
pw_log_info("port %d: %p %s %s cap %p %d",
|
||||
pw_log_debug("port %d: %p %s %s cap %p %d",
|
||||
port->info.id, port, changed ? "set" : "keep",
|
||||
pw_direction_as_string(direction), param, port->have_peer_capability_param);
|
||||
|
||||
|
|
@ -2018,7 +2018,7 @@ int pw_impl_port_recalc_capability(struct pw_impl_port *port)
|
|||
free(old);
|
||||
port->cap[direction] = param ? spa_pod_copy(param) : NULL;
|
||||
if (param)
|
||||
pw_log_pod(SPA_LOG_LEVEL_INFO, param);
|
||||
pw_log_pod(SPA_LOG_LEVEL_DEBUG, param);
|
||||
}
|
||||
spa_pod_dynamic_builder_clean(&b);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue