mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: debug: pod: print unsigned numbers as unsigned
Both `spa_rectangle` and `spa_fraction` store unsigned numbers, so print them as unsigned, the same way it is already done in `spa_debug_strbuf_format_value()`.
This commit is contained in:
parent
1c2fe03498
commit
4fa78021c7
1 changed files with 2 additions and 2 deletions
|
|
@ -60,13 +60,13 @@ spa_debugc_pod_value(struct spa_debug_context *ctx, int indent, const struct spa
|
|||
case SPA_TYPE_Rectangle:
|
||||
{
|
||||
struct spa_rectangle *r = (struct spa_rectangle *)body;
|
||||
spa_debugc(ctx, "%*s" "Rectangle %dx%d", indent, "", r->width, r->height);
|
||||
spa_debugc(ctx, "%*s" "Rectangle %" PRIu32 "x%" PRIu32 "", indent, "", r->width, r->height);
|
||||
break;
|
||||
}
|
||||
case SPA_TYPE_Fraction:
|
||||
{
|
||||
struct spa_fraction *f = (struct spa_fraction *)body;
|
||||
spa_debugc(ctx, "%*s" "Fraction %d/%d", indent, "", f->num, f->denom);
|
||||
spa_debugc(ctx, "%*s" "Fraction %" PRIu32 "/%" PRIu32 "", indent, "", f->num, f->denom);
|
||||
break;
|
||||
}
|
||||
case SPA_TYPE_Bitmap:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue