From 2ff21a2e8fcb42021bc5dff20e27058b574c214b Mon Sep 17 00:00:00 2001 From: rcerc <88944439+rcerc@users.noreply.github.com> Date: Sat, 30 Aug 2025 09:16:36 -0400 Subject: Use portable format specifiers --- midimcast-client.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/midimcast-client.c b/midimcast-client.c index a8904cc..90a3c04 100644 --- a/midimcast-client.c +++ b/midimcast-client.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -106,7 +107,11 @@ void baton_read(struct baton *const baton, const uint64_t ts_dst = now(); int64_t latency = (int64_t)ts_dst - (int64_t)baton->msg.ts; - debug("Message received: ts_src = %lu, ts_dst = %lu, latency = %ld, midi_size = %lu", + debug("Message received" + ": ts_src = %" PRIu64 + ", ts_dst = %" PRIu64 + ", latency = %" PRIi64 + ", midi_size = %zu", baton->msg.ts, ts_dst, latency, @@ -140,7 +145,7 @@ int timeout(const struct baton *const first_baton, const long delay) debug("Relaying in %d ms", timeout); return timeout; } else { - warn("Relaying %lu ms late", have - want); + warn("Relaying %" PRIu64 " ms late", have - want); return 0; } } else { -- cgit v1.2.3