]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: command: Use XML based disk bus convertor in error message
authorPeter Krempa <pkrempa@redhat.com>
Fri, 8 Nov 2019 14:37:26 +0000 (15:37 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Nov 2019 07:51:50 +0000 (08:51 +0100)
The qemu driver has an internal implementation for converting disk bus
to string for use with qemu. This should not be used in error messages
though as we want to report the string based on the XML value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
ACKed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_command.c

index f37aecda371e59390b7c446d9e9dbaa0d1238c01..3806cbbaf9ed795e5627a61a9bc36a8ce5d4b571 100644 (file)
@@ -1303,7 +1303,7 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk,
             disk->bus != VIR_DOMAIN_DISK_BUS_SCSI) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                            _("disk device='lun' is not supported for bus='%s'"),
-                           virDomainDiskQEMUBusTypeToString(disk->bus));
+                           virDomainDiskBusTypeToString(disk->bus));
             return -1;
         }