summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2022-11-17 12:21:50 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-11-17 15:38:08 -0800
commit818adf28e51877f32befab1a7faca314f89aa199 (patch)
tree35677959eba3781fce95d1d51cfdf8b31ce153ad /tools
parente2b2b1675f310023862319ea10ffd205a75cc0cb (diff)
downloadbluez-818adf28e51877f32befab1a7faca314f89aa199.tar.gz
tools: Use portable 64 bit data formats
The isotest executable was using the non-portable %zd string formatter for loging 64 bit integers. This replaces them with PRId64.
Diffstat (limited to 'tools')
-rw-r--r--tools/isotest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/isotest.c b/tools/isotest.c
index 8a50bfee8..dcd087ee1 100644
--- a/tools/isotest.c
+++ b/tools/isotest.c
@@ -30,6 +30,7 @@
#include <sys/uio.h>
#include <linux/sockios.h>
#include <time.h>
+#include <inttypes.h>
#include "lib/bluetooth.h"
#include "lib/hci.h"
@@ -589,12 +590,12 @@ static void send_wait(struct timespec *t_start, uint32_t us)
delta_us = us - TS_USEC(&t_diff);
if (delta_us < 0) {
- syslog(LOG_INFO, "Send is behind: %zd us", delta_us);
+ syslog(LOG_INFO, "Send is behind: %" PRId64 " us", delta_us);
delta_us = 1000;
}
if (!quiet)
- syslog(LOG_INFO, "Waiting (%zd us)...", delta_us);
+ syslog(LOG_INFO, "Waiting (%" PRId64 " us)...", delta_us);
usleep(delta_us);