From: Peter Krempa Date: Sat, 25 Sep 2021 07:38:35 +0000 (+0200) Subject: qemuBuildDeviceAddressPCIStr: Make error messages easier to find X-Git-Tag: v7.9.0-rc1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fbda628c620334584bb2481ac40315ca291f764;p=thirdparty%2Flibvirt.git qemuBuildDeviceAddressPCIStr: Make error messages easier to find 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 Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 4aaf40d34e..3745a3a776 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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; }