From: Peter Krempa <pkrempa@redhat.com> When querying capabilities for the default emulator with no other arguments (e.g. 'virsh domcapabilities) fix error whithout emulator installed an error is reported but the error would mention '(null)' architecture: # virsh domcapabilities error: failed to get emulator capabilities error: unsupported configuration: unable to find any emulator to serve '(null)' architecture This happens as the error formatting takes 'archStr' which is NULL for the default architecture instead of using 'arch' which is populated by the host's architecture and converting it back. Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- src/qemu/qemu_capabilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 3810d3f5f8..a28f87ad2b 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -6385,7 +6385,7 @@ virQEMUCapsCacheLookupDefault(virFileCache *cache, if (!binary) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unable to find any emulator to serve '%1$s' architecture"), - archStr); + virArchToString(arch)); return NULL; } -- 2.54.0