mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user