1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-18 21:15: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

View file

@ -130,7 +130,7 @@ static uint32_t nl_send(int s, void *req, uint16_t type,
if (n < 0)
die("netlink: Failed to send(): %s", strerror(errno));
else if (n < len)
die("netlink: Short send (%lu of %lu bytes)", n, len);
die("netlink: Short send (%zd of %zd bytes)", n, len);
return nh->nlmsg_seq;
}