libvhost-user: Fix format strings
Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220422070144.1043697-3-sw@weilnetz.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20221126152507.283271-3-sw@weilnetz.de>
This commit is contained in:
parent
266aaedc37
commit
8541bf452d
@ -700,7 +700,7 @@ vu_add_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
|
|||||||
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
|
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
|
||||||
close(vmsg->fds[0]);
|
close(vmsg->fds[0]);
|
||||||
vu_panic(dev, "VHOST_USER_ADD_MEM_REG requires a message size of at "
|
vu_panic(dev, "VHOST_USER_ADD_MEM_REG requires a message size of at "
|
||||||
"least %d bytes and only %d bytes were received",
|
"least %zu bytes and only %d bytes were received",
|
||||||
VHOST_USER_MEM_REG_SIZE, vmsg->size);
|
VHOST_USER_MEM_REG_SIZE, vmsg->size);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -826,7 +826,7 @@ vu_rem_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
|
|||||||
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
|
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
|
||||||
vmsg_close_fds(vmsg);
|
vmsg_close_fds(vmsg);
|
||||||
vu_panic(dev, "VHOST_USER_REM_MEM_REG requires a message size of at "
|
vu_panic(dev, "VHOST_USER_REM_MEM_REG requires a message size of at "
|
||||||
"least %d bytes and only %d bytes were received",
|
"least %zu bytes and only %d bytes were received",
|
||||||
VHOST_USER_MEM_REG_SIZE, vmsg->size);
|
VHOST_USER_MEM_REG_SIZE, vmsg->size);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user