impl-link: improve debug log

Log the format after we patch it up and log some context lines.

Move some info log to debug.
This commit is contained in:
Wim Taymans 2025-04-01 10:19:40 +02:00
parent 94910f77c9
commit aca673b3ab

View file

@ -388,11 +388,10 @@ static int do_negotiate(struct pw_impl_link *this)
} }
} }
pw_log_pod(SPA_LOG_LEVEL_DEBUG, format);
SPA_POD_OBJECT_ID(format) = SPA_PARAM_Format; SPA_POD_OBJECT_ID(format) = SPA_PARAM_Format;
pw_log_debug("%p: doing set format %p fixated:%d", this, pw_log_debug("%p: doing set format %p fixated:%d", this,
format, spa_pod_is_fixated(format)); format, spa_pod_is_fixated(format));
pw_log_pod(SPA_LOG_LEVEL_INFO, format);
if (out_state == PW_IMPL_PORT_STATE_CONFIGURE) { if (out_state == PW_IMPL_PORT_STATE_CONFIGURE) {
pw_log_debug("%p: doing set format on output", this); pw_log_debug("%p: doing set format on output", this);
@ -405,7 +404,7 @@ static int do_negotiate(struct pw_impl_link *this)
goto error; goto error;
} }
if (SPA_RESULT_IS_ASYNC(res)) { if (SPA_RESULT_IS_ASYNC(res)) {
pw_log_info("output set format %d", res); pw_log_debug("output set format %d", res);
busy_id = pw_work_queue_add(impl->work, &this->output_link, busy_id = pw_work_queue_add(impl->work, &this->output_link,
spa_node_sync(output->node->node, res), spa_node_sync(output->node->node, res),
complete_ready, this); complete_ready, this);
@ -425,7 +424,7 @@ static int do_negotiate(struct pw_impl_link *this)
goto error; goto error;
} }
if (SPA_RESULT_IS_ASYNC(res2)) { if (SPA_RESULT_IS_ASYNC(res2)) {
pw_log_info("input set format %d", res2); pw_log_debug("input set format %d", res2);
busy_id = pw_work_queue_add(impl->work, &this->input_link, busy_id = pw_work_queue_add(impl->work, &this->input_link,
spa_node_sync(input->node->node, res2), spa_node_sync(input->node->node, res2),
complete_ready, this); complete_ready, this);