From 50fd1d0cc4c8501b6dd9e2e386529f88975298d7 Mon Sep 17 00:00:00 2001 From: Christian Eggers Date: Wed, 19 Mar 2025 11:37:23 +0100 Subject: [PATCH] client/player: fix printf format mismatch %zd is meant for 'size_t' rather than 'off_t'. As there is no printf length modifier for 'off_t', cast to a standard type which should be large enough for on all platforms. --- client/player.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/player.c b/client/player.c index 76fee0a05..13744ba2d 100644 --- a/client/player.c +++ b/client/player.c @@ -5551,10 +5551,11 @@ static int transport_send_seq(struct transport *transport, int fd, uint32_t num) offset = lseek(fd, 0, SEEK_CUR); - bt_shell_echo("[seq %d %d.%03ds] send: %zd/%zd bytes", + bt_shell_echo("[seq %d %d.%03ds] send: %lld/%lld bytes", transport->seq, secs, (nsecs + 500000) / 1000000, - offset, transport->stat.st_size); + (long long)offset, + (long long)transport->stat.st_size); } free(buf); -- 2.47.3