mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
node: improve debug
Add duration/rate/position in warning
This commit is contained in:
parent
b3bbc62870
commit
f630dd1a3b
1 changed files with 6 additions and 2 deletions
|
|
@ -890,6 +890,8 @@ static const char *str_status(uint32_t status)
|
||||||
static void dump_states(struct pw_impl_node *driver)
|
static void dump_states(struct pw_impl_node *driver)
|
||||||
{
|
{
|
||||||
struct pw_node_target *t;
|
struct pw_node_target *t;
|
||||||
|
struct pw_node_activation *na = driver->rt.activation;
|
||||||
|
struct spa_io_clock *cl = &na->position.clock;
|
||||||
|
|
||||||
spa_list_for_each(t, &driver->rt.target_list, link) {
|
spa_list_for_each(t, &driver->rt.target_list, link) {
|
||||||
struct pw_node_activation *a = t->activation;
|
struct pw_node_activation *a = t->activation;
|
||||||
|
|
@ -898,8 +900,10 @@ static void dump_states(struct pw_impl_node *driver)
|
||||||
continue;
|
continue;
|
||||||
if (a->status == PW_NODE_ACTIVATION_TRIGGERED ||
|
if (a->status == PW_NODE_ACTIVATION_TRIGGERED ||
|
||||||
a->status == PW_NODE_ACTIVATION_AWAKE) {
|
a->status == PW_NODE_ACTIVATION_AWAKE) {
|
||||||
pw_log_warn("(%s-%u) client too slow! status:%s",
|
pw_log_warn("(%s-%u) client too slow! rate:%u/%u pos:%"PRIu64" status:%s",
|
||||||
t->node->name, t->node->info.id, str_status(a->status));
|
t->node->name, t->node->info.id,
|
||||||
|
(uint32_t)(cl->rate.num * cl->duration), cl->rate.denom,
|
||||||
|
cl->position, str_status(a->status));
|
||||||
}
|
}
|
||||||
pw_log_debug("(%s-%u) state:%p pending:%d/%d s:%"PRIu64" a:%"PRIu64" f:%"PRIu64
|
pw_log_debug("(%s-%u) state:%p pending:%d/%d s:%"PRIu64" a:%"PRIu64" f:%"PRIu64
|
||||||
" waiting:%"PRIu64" process:%"PRIu64" status:%s sync:%d",
|
" waiting:%"PRIu64" process:%"PRIu64" status:%s sync:%d",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue