···353353{
354354 // this should only be set once
355355 assert(output == nullptr);
356356- DEV_DEBUG("setting haptic handle for %lu", handle);
356356+ DEV_DEBUG("setting haptic handle for %" PRIu64, handle);
357357 haptic_handle = handle;
358358 xrt_output_name name;
359359 switch (this->name) {
+5-6
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
···570570 } else if (components->y == ulComponent) {
571571 input->value.vec2.y = fNewValue;
572572 } else {
573573- CTX_WARN(
574574- "Attempted to update component with handle %lu"
575575- " but it was neither the x nor y "
576576- "component of its associated input",
577577- ulComponent);
573573+ CTX_WARN("Attempted to update component with handle %" PRIu64
574574+ " but it was neither the x nor y "
575575+ "component of its associated input",
576576+ ulComponent);
578577 }
579578580579 } else {
···592591 finger_input->second->timestamp = timestamp;
593592 finger_input->second->value = fNewValue;
594593 } else {
595595- CTX_WARN("Unmapped component %lu", ulComponent);
594594+ CTX_WARN("Unmapped component %" PRIu64, ulComponent);
596595 }
597596 }
598597 }
+4-3
src/xrt/drivers/vive/vive_controller.c
···731731 }
732732733733 if (buf > end)
734734- VIVE_ERROR(d, "overshoot: %ld\n", buf - end);
734734+ VIVE_ERROR(d, "overshoot: %td\n", (ptrdiff_t)(buf - end));
735735736736 if (buf < end)
737737 vive_controller_handle_lighthousev1(d, buf, end - buf);
···899899#endif
900900901901 if (buf < end) {
902902- VIVE_TRACE(d, "%ld bytes unparsed data in message\n", message->len - (buf - message->payload) - 1);
902902+ VIVE_TRACE(d, "%td bytes unparsed data in message\n",
903903+ (ptrdiff_t)(message->len - (buf - message->payload) - 1));
903904 }
904905 if (buf > end)
905905- VIVE_ERROR(d, "overshoot: %ld\n", buf - end);
906906+ VIVE_ERROR(d, "overshoot: %td\n", (ptrdiff_t)(buf - end));
906907907908 //! @todo: Parse lighthouse v2 data
908909}
···558558 // If this is larger then one second something bad is going on.
559559 if (hmd->fusion.state != M_IMU_3DOF_STATE_START &&
560560 inter_sample_duration_ns >= (time_duration_ns)U_TIME_1S_IN_NS) {
561561- XREAL_AIR_ERROR(hmd, "Drop packet (sensor too slow): %lu", inter_sample_duration_ns);
561561+ XREAL_AIR_ERROR(hmd, "Drop packet (sensor too slow): %" PRId64, inter_sample_duration_ns);
562562 return;
563563 }
564564