aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {