mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
st/oxr: Fix 32-bit warnings
This commit is contained in:
parent
2aa3b27695
commit
d4c5b37bc0
|
@ -11,6 +11,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "util/u_debug.h"
|
||||
#include "util/u_misc.h"
|
||||
|
@ -249,7 +250,9 @@ oxr_session_get_view_pose_at(struct oxr_logger *log,
|
|||
if (sess->sys->inst->debug_views) {
|
||||
fprintf(stderr,
|
||||
"\toriginal quat = {%f, %f, %f, %f} "
|
||||
"(time requested: %li, Interval %li nsec, with "
|
||||
"(time requested: %" PRIi64
|
||||
", Interval %" PRIi64
|
||||
" nsec, with "
|
||||
"static interval %f s)\n",
|
||||
pose->orientation.x, pose->orientation.y,
|
||||
pose->orientation.z, pose->orientation.w,
|
||||
|
@ -327,7 +330,7 @@ oxr_session_views(struct oxr_logger *log,
|
|||
|
||||
if (sess->sys->inst->debug_views) {
|
||||
fprintf(stderr, "%s\n", __func__);
|
||||
fprintf(stderr, "\tviewLocateInfo->displayTime %lu\n",
|
||||
fprintf(stderr, "\tviewLocateInfo->displayTime %" PRIu64 "\n",
|
||||
viewLocateInfo->displayTime);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "xrt/xrt_device.h"
|
||||
|
@ -78,7 +79,7 @@ oxr_system_verify_id(struct oxr_logger *log,
|
|||
{
|
||||
if (systemId != 1) {
|
||||
return oxr_error(log, XR_ERROR_SYSTEM_INVALID,
|
||||
"invalid system %lu", systemId);
|
||||
"invalid system %" PRIu64, systemId);
|
||||
}
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue