[LTP] [PATCH] lib/tst_safe_posix_ipc: Use %zu to format size_t

Richard Palethorpe rpalethorpe@suse.com
Tue Feb 14 10:50:27 CET 2023


Prevents compiler warning on 32bit

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
 include/tst_safe_posix_ipc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tst_safe_posix_ipc.h b/include/tst_safe_posix_ipc.h
index 2d3d0928f..e7892f2af 100644
--- a/include/tst_safe_posix_ipc.h
+++ b/include/tst_safe_posix_ipc.h
@@ -121,7 +121,7 @@ static inline int safe_mq_send(const char *file, const int lineno,
 
 	if (rval == -1) {
 		tst_brk_(file, lineno, TBROK | TERRNO,
-			"mq_send(%d,%s,%lu,%d) failed", mqdes, msg_ptr,
+			"mq_send(%d,%s,%zu,%d) failed", mqdes, msg_ptr,
 			msg_len, msg_prio);
 	}
 
-- 
2.39.1



More information about the ltp mailing list