qemu: fix conversion specifier in qemuBuildVsockDevProps

vhostfd is a signed integer.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Ján Tomko 2022-10-24 15:31:06 +02:00
parent 0b1da01ef2
commit 045072ee3a

View File

@ -9686,7 +9686,7 @@ qemuBuildVsockDevProps(virDomainDef *def,
{
qemuDomainVsockPrivate *priv = (qemuDomainVsockPrivate *)vsock->privateData;
g_autoptr(virJSONValue) props = NULL;
g_autofree char *vhostfd = g_strdup_printf("%s%u", fdprefix, priv->vhostfd);
g_autofree char *vhostfd = g_strdup_printf("%s%d", fdprefix, priv->vhostfd);
if (!(props = qemuBuildVirtioDevProps(VIR_DOMAIN_DEVICE_VSOCK, vsock, qemuCaps)))
return NULL;