impl-link: fix log

This commit is contained in:
Wim Taymans 2023-10-20 16:18:41 +02:00
parent 81437f7a77
commit 80afa3a296

View file

@ -149,7 +149,7 @@ static inline void input_set_busy_id(struct pw_impl_link *link, uint32_t id)
link->input->busy_count++; link->input->busy_count++;
impl->input_busy_id = id; impl->input_busy_id = id;
if (link->input->busy_count < 0) if (link->input->busy_count < 0)
pw_log_error("%p: invalid busy count:%d", link->input->busy_count); pw_log_error("%s: invalid busy count:%d", link->name, link->input->busy_count);
} }
static inline void output_set_busy_id(struct pw_impl_link *link, uint32_t id) static inline void output_set_busy_id(struct pw_impl_link *link, uint32_t id)
@ -161,7 +161,7 @@ static inline void output_set_busy_id(struct pw_impl_link *link, uint32_t id)
link->output->busy_count++; link->output->busy_count++;
impl->output_busy_id = id; impl->output_busy_id = id;
if (link->output->busy_count < 0) if (link->output->busy_count < 0)
pw_log_error("%p: invalid busy count:%d", link->output->busy_count); pw_log_error("%s: invalid busy count:%d", link->name, link->output->busy_count);
} }
static void link_update_state(struct pw_impl_link *link, enum pw_link_state state, int res, char *error) static void link_update_state(struct pw_impl_link *link, enum pw_link_state state, int res, char *error)