[PATCH v2 1/7] qemuValidateDomainDefPCIFeature: un-break error messages

Peter Krempa pkrempa at redhat.com
Mon Oct 11 13:02:06 UTC 2021


https://www.libvirt.org/coding-style.html#error-message-format

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/qemu/qemu_validate.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index be609c9d39..e530368cb3 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -194,8 +194,7 @@ qemuValidateDomainDefPCIFeature(const virDomainDef *def,
             case VIR_DOMAIN_PCI_ACPI_BRIDGE_HOTPLUG:
                 if (!ARCH_IS_X86(def->os.arch)) {
                     virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                                   _("acpi-bridge-hotplug is not available "
-                                   "for architecture '%s'"),
+                                   _("acpi-bridge-hotplug is not available for architecture '%s'"),
                                    virArchToString(def->os.arch));
                     return -1;
                 }
@@ -203,8 +202,7 @@ qemuValidateDomainDefPCIFeature(const virDomainDef *def,
                     !virQEMUCapsGet(qemuCaps,
                                     QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE)) {
                     virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                                   _("acpi-bridge-hotplug is not available "
-                                   "with this QEMU binary"));
+                                   _("acpi-bridge-hotplug is not available with this QEMU binary"));
                     return -1;
                 }
                 break;
-- 
2.31.1




More information about the libvir-list mailing list