mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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:
parent
97475487f8
commit
d89fd6d93d
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user