[PATCH BlueZ 1/3] client/player: fix printf format string

Christian Eggers
2022-09-23T10:52:18Z

Use macros from inttypes.h for correct printf format specifier for
int64_t
---
client/player.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/player.c b/client/player.c
index 0daacabf3c27..30ae263c8e41 100644
--- a/client/player.c
+++ b/client/player.c
@@ -15,7 +15,7 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <stdbool.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
@@ -3056,7 +3056,7 @@ static void send_wait(struct timespec *t_start, uint32_t us)
delta_us = us - TS_USEC(&t_diff);

if (delta_us < 0) {
- bt_shell_printf("Send is behind: %zd us - skip sleep",
+ bt_shell_printf("Send is behind: %" PRId64 " us - skip sleep",
delta_us);
delta_us = 1000;
}
--
2.35.3