[PATCH v3 06/29] qemu_validate.c: enhance 'machine type not supported' message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add 'virt type' to allow for an easier time debugging.

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>
Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>
Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---
 src/qemu/qemu_validate.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index f90348c324..ad8f0f94ff 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -1101,8 +1101,9 @@ qemuValidateDomainDef(const virDomainDef *def,
 
     if (!virQEMUCapsIsMachineSupported(qemuCaps, def->virtType, def->os.machine)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                       _("Emulator '%s' does not support machine type '%s'"),
-                       def->emulator, def->os.machine);
+                       _("Emulator '%s' does not support machine type '%s' for virt type '%s'"),
+                       def->emulator, def->os.machine,
+                       virDomainVirtTypeToString(def->virtType));
         return -1;
     }
 
-- 
2.35.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux