mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
st/prober: fix view_count printing in PH() macro
This commit is contained in:
parent
b2c4134113
commit
f4c3e9ed2c
|
@ -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>")
|
||||
|
||||
|
|
Loading…
Reference in a new issue