From f4c3e9ed2cfaaf76e53aaec2a5f74196893bbc70 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Sun, 17 Mar 2024 22:48:07 +0100 Subject: [PATCH] st/prober: fix view_count printing in PH() macro --- src/xrt/state_trackers/prober/p_prober.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/state_trackers/prober/p_prober.c b/src/xrt/state_trackers/prober/p_prober.c index cbc1f9975..3f070e408 100644 --- a/src/xrt/state_trackers/prober/p_prober.c +++ b/src/xrt/state_trackers/prober/p_prober.c @@ -853,9 +853,9 @@ print_system_devices(u_pp_delegate_t dg, struct xrt_system_devices *xsysd) u_pp(dg, "\n\tIn roles:"); #define PH(IDENT) \ - u_pp(dg, "\n\t\t%s: %s, view count: %d", #IDENT, \ + u_pp(dg, "\n\t\t%s: %s, view count: %lu", #IDENT, \ xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->str : "", \ - xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->hmd->view_count : "") + xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->hmd->view_count : 0) #define P(IDENT) u_pp(dg, "\n\t\t%s: %s", #IDENT, xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->str : "") #define PD(IDENT) u_pp(dg, "\n\t\t%s: %s", #IDENT, roles.IDENT >= 0 ? xsysd->xdevs[roles.IDENT]->str : "")