From 06559048e76343211618ddea02d6739ca578b775 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 29 Nov 2023 13:17:10 +0100 Subject: treewide: Use 'z' length modifier for size_t/ssize_t conversions Types size_t and ssize_t are not necessarily long, it depends on the architecture. Signed-off-by: Stefano Brivio Reviewed-by: David Gibson --- tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcp.c') diff --git a/tcp.c b/tcp.c index 40e3dec..44468ca 100644 --- a/tcp.c +++ b/tcp.c @@ -2570,7 +2570,8 @@ int tcp_tap_handler(struct ctx *c, uint8_t pif, int af, return 1; } - trace("TCP: packet length %lu from tap for index %lu", len, CONN_IDX(conn)); + trace("TCP: packet length %zu from tap for index %lu", + len, CONN_IDX(conn)); if (th->rst) { conn_event(c, conn, CLOSED); -- cgit v1.2.3