The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/euroc: Fix printf formatting on 32bit

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
43ac5d44 fd2c7c6a

+4 -2
+4 -2
src/xrt/drivers/euroc/euroc_player.cpp
··· 31 31 #include <fstream> 32 32 #include <future> 33 33 #include <thread> 34 + #include <inttypes.h> 34 35 35 36 //! @see euroc_player_playback_config 36 37 DEBUG_GET_ONCE_LOG_OPTION(euroc_log, "EUROC_LOG", U_LOGGING_WARN) ··· 395 396 os_monotonic_get_ts() 396 397 { 397 398 uint64_t uts = os_monotonic_get_ns(); 398 - EUROC_ASSERT(uts < INT64_MAX, "Timestamp=%lu was greater than INT64_MAX=%ld", uts, INT64_MAX); 399 + EUROC_ASSERT(uts < INT64_MAX, "Timestamp=%" PRId64 " was greater than INT64_MAX=%ld", uts, INT64_MAX); 399 400 int64_t its = uts; 400 401 return its; 401 402 } ··· 488 489 } 489 490 490 491 size_t fcount = ep->imgs->at(0).size(); 491 - (void)snprintf(ep->progress_text, sizeof(ep->progress_text), "Playback %.2f%% - Frame %lu/%lu - IMU %lu/%lu", 492 + (void)snprintf(ep->progress_text, sizeof(ep->progress_text), 493 + "Playback %.2f%% - Frame %" PRId64 "/%" PRId64 " - IMU %" PRId64 "/%" PRId64, 492 494 float(ep->img_seq) / float(fcount) * 100, ep->img_seq, fcount, ep->imu_seq, ep->imus->size()); 493 495 494 496 if (ep->playback.print_progress) {