aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-11-29 13:17:10 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-12-02 03:54:42 +0100
commit06559048e76343211618ddea02d6739ca578b775 (patch)
tree6a2dc46dc42e7bd916bd86f701aa491aa898c946 /tcp.c
parent4117bd94f967709074ff1f310d7334ab1876ddae (diff)
downloadpasst-06559048e76343211618ddea02d6739ca578b775.tar
passt-06559048e76343211618ddea02d6739ca578b775.tar.gz
passt-06559048e76343211618ddea02d6739ca578b775.tar.bz2
passt-06559048e76343211618ddea02d6739ca578b775.tar.lz
passt-06559048e76343211618ddea02d6739ca578b775.tar.xz
passt-06559048e76343211618ddea02d6739ca578b775.tar.zst
passt-06559048e76343211618ddea02d6739ca578b775.zip
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 <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c3
1 files changed, 2 insertions, 1 deletions
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);