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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user