mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
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:
parent
0b1da01ef2
commit
045072ee3a
@ -9686,7 +9686,7 @@ qemuBuildVsockDevProps(virDomainDef *def,
|
|||||||
{
|
{
|
||||||
qemuDomainVsockPrivate *priv = (qemuDomainVsockPrivate *)vsock->privateData;
|
qemuDomainVsockPrivate *priv = (qemuDomainVsockPrivate *)vsock->privateData;
|
||||||
g_autoptr(virJSONValue) props = NULL;
|
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)))
|
if (!(props = qemuBuildVirtioDevProps(VIR_DOMAIN_DEVICE_VSOCK, vsock, qemuCaps)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user