st/prober: fix view_count printing in PH() macro

This commit is contained in:
Christoph Haag 2024-03-17 22:48:07 +01:00
parent b2c4134113
commit f4c3e9ed2c

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