]> git.ipfire.org Git - thirdparty/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)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:06:42 +0000 (11:06 -0400)
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.

(cherry picked from commit 68545ea629b40927e36d2062eff6358014b9fc8d)

src/qemu/qemu_command.c

index 8c222d733e72a30a74455b13f531880783d13e03..4a6efc2d6545ca670ce83c39da116c5ba9362323 100644 (file)
@@ -2371,8 +2371,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;
         }