render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c401cc
From ac6fed0e0c6a8dcee11e0e3cc8ba5dc030ed1ad5 Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <ac6fed0e0c6a8dcee11e0e3cc8ba5dc030ed1ad5@dist-git>
c401cc
From: Osier Yang <jyang@redhat.com>
c401cc
Date: Sun, 2 Feb 2014 23:09:42 +0800
c401cc
Subject: [PATCH] qemu: Fix the error message for scsi host device's shareable
c401cc
 checking
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=957292
c401cc
c401cc
This fixes the wrong argument order.
c401cc
(cherry picked from commit f406aa25f2e82efbf3746c2f0330e923120332a4)
c401cc
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 src/qemu/qemu_hostdev.c | 4 ++--
c401cc
 1 file changed, 2 insertions(+), 2 deletions(-)
c401cc
c401cc
diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c
c401cc
index 49e17e1..d258e78 100644
c401cc
--- a/src/qemu/qemu_hostdev.c
c401cc
+++ b/src/qemu/qemu_hostdev.c
c401cc
@@ -1134,8 +1134,8 @@ qemuPrepareHostdevSCSIDevices(virQEMUDriverPtr driver,
c401cc
                 virReportError(VIR_ERR_OPERATION_INVALID,
c401cc
                                _("SCSI device %s is already in use by "
c401cc
                                  "other domain(s) as '%s'"),
c401cc
-                               tmp_shareable ? "shareable" : "non-shareable",
c401cc
-                               virSCSIDeviceGetName(tmp));
c401cc
+                               virSCSIDeviceGetName(tmp),
c401cc
+                               tmp_shareable ? "shareable" : "non-shareable");
c401cc
                 goto error;
c401cc
             }
c401cc
 
c401cc
-- 
c401cc
1.8.5.4
c401cc