aboutgitcodebugslistschat
path: root/netlink.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 /netlink.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 'netlink.c')
-rw-r--r--netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink.c b/netlink.c
index 6cc04a0..379d46e 100644
--- a/netlink.c
+++ b/netlink.c
@@ -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;
}