diff mbox series

[BlueZ,5/5] shared/bap: fix printf format mismatch

Message ID 20250319103724.10433-5-ceggers@arri.de (mailing list archive)
State Accepted
Commit 50a01b0c17e9c46b7d1ded7cae7df5ea029819dc
Headers show
Series [BlueZ,1/5] tools: iso-tester: add inclusion of time.h | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

Christian Eggers March 19, 2025, 10:37 a.m. UTC
struct iovec::iov_len is 'size_t' rather than 'long int'.
https://man7.org/linux/man-pages/man3/iovec.3type.html
---
 src/shared/bap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 1cf0fcfb9b79..5d4d69d2925b 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -7313,7 +7313,7 @@  bool bt_bap_parse_base(struct iovec *iov,
 	uint8_t sgrps;
 	bool ret = true;
 
-	util_debug(func, NULL, "BASE len: %ld", iov->iov_len);
+	util_debug(func, NULL, "BASE len: %zd", iov->iov_len);
 
 	if (!util_iov_pull_le24(iov, &delay))
 		return false;
@@ -7359,7 +7359,7 @@  bool bt_bap_parse_base(struct iovec *iov,
 		l2_cc.iov_len = l2_cc_len;
 
 		/* Print Codec Specific Configuration */
-		util_debug(func, NULL, "CC len: %ld", l2_cc.iov_len);
+		util_debug(func, NULL, "CC len: %zd", l2_cc.iov_len);
 		bt_bap_debug_config(l2_cc.iov_base, l2_cc.iov_len,
 								func, NULL);