From 4fa78021c769609540bd21cb88c63574244c2f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 4 Jan 2025 16:32:45 +0100 Subject: [PATCH] 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()`. --- spa/include/spa/debug/pod.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/include/spa/debug/pod.h b/spa/include/spa/debug/pod.h index a31b78e34..4754b6a9e 100644 --- a/spa/include/spa/debug/pod.h +++ b/spa/include/spa/debug/pod.h @@ -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: