st/prober: fix format modifier in print_system_devices

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>
This commit is contained in:
Simon Zeni 2024-07-04 13:21:18 -04:00 committed by Rylie Pavlik
parent 128f20df7c
commit 6847183cb2

View file

@ -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: %lu", #IDENT, \
u_pp(dg, "\n\t\t%s: %s, view count: %zu", #IDENT, \
xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->str : "<none>", \
xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->hmd->view_count : 0)
xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->hmd->view_count : 0u);
#define P(IDENT) u_pp(dg, "\n\t\t%s: %s", #IDENT, xsysd->static_roles.IDENT ? xsysd->static_roles.IDENT->str : "<none>")
#define PD(IDENT) u_pp(dg, "\n\t\t%s: %s", #IDENT, roles.IDENT >= 0 ? xsysd->xdevs[roles.IDENT]->str : "<none>")