1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-16 12:25:34 +02:00

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>
This commit is contained in:
Stefano Brivio 2023-11-29 13:17:10 +01:00
parent 4117bd94f9
commit 06559048e7
6 changed files with 22 additions and 21 deletions

3
tcp.c
View file

@ -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);