[libvirt] [PATCH] qemu: Fix the error message for scsi host device's shareable checking

Osier Yang jyang at redhat.com
Thu Jan 30 08:58:18 UTC 2014


This fixes the wrong argument order.

---
Pushed under trivial rule.
---
 src/qemu/qemu_hostdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c
index 2b11d6c..1b16386 100644
--- a/src/qemu/qemu_hostdev.c
+++ b/src/qemu/qemu_hostdev.c
@@ -1135,8 +1135,8 @@ qemuPrepareHostdevSCSIDevices(virQEMUDriverPtr driver,
                 virReportError(VIR_ERR_OPERATION_INVALID,
                                _("SCSI device %s is already in use by "
                                  "other domain(s) as '%s'"),
-                               tmp_shareable ? "shareable" : "non-shareable",
-                               virSCSIDeviceGetName(tmp));
+                               virSCSIDeviceGetName(tmp),
+                               tmp_shareable ? "shareable" : "non-shareable");
                 goto error;
             }
 
-- 
1.8.1.4




More information about the libvir-list mailing list