mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
improve debug and error reporting
This commit is contained in:
parent
9aadc753c0
commit
9d842fb5eb
7 changed files with 45 additions and 22 deletions
|
|
@ -134,16 +134,16 @@ spa_debug_pod_value(int indent, const struct spa_type_info *info,
|
|||
ii = ti ? spa_debug_type_find(ti->values, 0) : NULL;
|
||||
ii = ii ? spa_debug_type_find(ii->values, b->id) : NULL;
|
||||
|
||||
spa_debug("%*s" "Object: size %d, type %s, id %s", indent, "", size,
|
||||
ti ? ti->name : "unknown", ii ? ii->name : "unknown");
|
||||
spa_debug("%*s" "Object: size %d, type %s (%d), id %s (%d)", indent, "", size,
|
||||
ti ? ti->name : "unknown", b->type, ii ? ii->name : "unknown", b->id);
|
||||
|
||||
info = ti ? ti->values : info;
|
||||
|
||||
SPA_POD_OBJECT_BODY_FOREACH(b, size, p) {
|
||||
ii = spa_debug_type_find(info, p->key);
|
||||
|
||||
spa_debug("%*s" "Prop: key %s, context %d", indent+2, "",
|
||||
ii ? ii->name : "unknown", p->context);
|
||||
spa_debug("%*s" "Prop: key %s (%d), context %d", indent+2, "",
|
||||
ii ? ii->name : "unknown", p->key, p->context);
|
||||
|
||||
spa_debug_pod_value(indent + 4, ii ? ii->values : NULL,
|
||||
p->value.type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue