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 <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-09-25 09:38:35 +02:00
parent 79f872a8d1
commit 2fbda628c6

View 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;
}