]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuBuildDeviceAddressPCIStr: Make error messages easier to find
authorPeter Krempa <pkrempa@redhat.com>
Sat, 25 Sep 2021 07:38:35 +0000 (09:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:01 +0000 (10:26 +0200)
Per coding guidelines error messages [1] should not be broken into
lines and variables should be separated by apostrophes.

[1] https://libvirt.org/coding-style.html#error-message-format

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c

index 4aaf40d34e564023dd4b2f96e8cec7f795f5ad3a..3745a3a776b97f3b783d987a0db0d83ee28c0709 100644 (file)
@@ -345,9 +345,7 @@ qemuBuildDeviceAddressPCIStr(virBuffer *buf,
 
             if (!contAlias) {
                 virReportError(VIR_ERR_INTERNAL_ERROR,
-                               _("Device alias was not set for PCI "
-                                 "controller with index %u required "
-                                 "for device at address %s"),
+                               _("Device alias was not set for PCI controller with index '%u' required for device at address '%s'"),
                                info->addr.pci.bus, devStr);
                 return -1;
             }
@@ -372,9 +370,7 @@ qemuBuildDeviceAddressPCIStr(virBuffer *buf,
 
     if (!contAlias) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
-                       _("Could not find PCI "
-                         "controller with index %u required "
-                         "for device at address %s"),
+                       _("Could not find PCI controller with index '%u' required for device at address '%s'"),
                        info->addr.pci.bus, devStr);
         return -1;
     }