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:
Barnabás Pőcze 2025-01-04 16:32:45 +01:00 committed by Wim Taymans
parent 1c2fe03498
commit 4fa78021c7

View file

@ -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: