]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix typo in error message
authorJán Tomko <jtomko@redhat.com>
Mon, 16 Mar 2015 14:55:21 +0000 (15:55 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 24 Mar 2015 17:06:38 +0000 (18:06 +0100)
by rewriting it completely from:
error: unsupported configuration: virtio only support device address
type 'PCI'

to:

error: unsupported configuration: virtio disk cannot have an address of type
drive

Since we now support CCW addresses as well.

src/qemu/qemu_command.c

index 7e6b95c751e4a0e4627debab4c6723f2c585322d..99a19d6246238b2b5107007a386337967a27e85d 100644 (file)
@@ -2427,8 +2427,9 @@ qemuAssignDevicePCISlots(virDomainDefPtr def,
             continue;
 
         if (def->disks[i]->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                           _("virtio only support device address type 'PCI'"));
+            virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+                           _("virtio disk cannot have an address of type '%s'"),
+                           virDomainDeviceAddressTypeToString(def->disks[i]->info.type));
             goto error;
         }