qemu: Fix hotplug error message format to conform to spec

Error messages must conform to spec as specified here:
https://www.libvirt.org/coding-style.html#error-message-format

This change makes some error messages conform to the spec above.

Fixes: 8eadf82fb5 ("conf: introduce option to enable/disable pci hotplug on pci-root controller")

Signed-off-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Ani Sinha 2021-10-21 09:00:26 +05:30 committed by Laine Stump
parent 97475487f8
commit d89fd6d93d
3 changed files with 5 additions and 5 deletions

View File

@ -3906,7 +3906,7 @@ qemuValidateDomainDeviceDefControllerPCI(const virDomainControllerDef *cont,
case VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT:
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("setting the %s property on a '%s' device is not supported by this QEMU binary"),
_("setting the '%s' property on a '%s' device is not supported by this QEMU binary"),
"hotplug", "pci-root");
return -1;
}
@ -3915,8 +3915,8 @@ qemuValidateDomainDeviceDefControllerPCI(const virDomainControllerDef *cont,
case VIR_DOMAIN_CONTROLLER_MODEL_PCIE_SWITCH_DOWNSTREAM_PORT:
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_PCIE_ROOT_PORT_HOTPLUG)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("setting the hotplug property on a '%s' device is not supported by this QEMU binary"),
modelName);
_("setting the '%s' property on a '%s' device is not supported by this QEMU binary"),
"hotplug", modelName);
return -1;
}
break;

View File

@ -1 +1 @@
unsupported configuration: setting the hotplug property on a 'pci-root' device is not supported by this QEMU binary
unsupported configuration: setting the 'hotplug' property on a 'pci-root' device is not supported by this QEMU binary

View File

@ -1 +1 @@
unsupported configuration: setting the hotplug property on a 'pci-root' device is not supported by this QEMU binary
unsupported configuration: setting the 'hotplug' property on a 'pci-root' device is not supported by this QEMU binary