aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrcerc <88944439+rcerc@users.noreply.github.com>2025-08-30 09:16:36 -0400
committerrcerc <88944439+rcerc@users.noreply.github.com>2025-08-30 09:16:36 -0400
commit2ff21a2e8fcb42021bc5dff20e27058b574c214b (patch)
tree2aa25e12e21fecbeec24b6313e5f1908a73c8361
parent5179ace697f702d7103c9aa6e26478363e0f6a4d (diff)
Use portable format specifiers
-rw-r--r--midimcast-client.c9
1 files 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 <arpa/inet.h>
#include <endian.h>
+#include <inttypes.h>
#include <poll.h>
#include <stdbool.h>
#include <stdint.h>
@@ -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 {