Blob Blame History Raw
From ac6fed0e0c6a8dcee11e0e3cc8ba5dc030ed1ad5 Mon Sep 17 00:00:00 2001
Message-Id: <ac6fed0e0c6a8dcee11e0e3cc8ba5dc030ed1ad5@dist-git>
From: Osier Yang <jyang@redhat.com>
Date: Sun, 2 Feb 2014 23:09:42 +0800
Subject: [PATCH] qemu: Fix the error message for scsi host device's shareable
 checking

https://bugzilla.redhat.com/show_bug.cgi?id=957292

This fixes the wrong argument order.
(cherry picked from commit f406aa25f2e82efbf3746c2f0330e923120332a4)

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 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 49e17e1..d258e78 100644
--- a/src/qemu/qemu_hostdev.c
+++ b/src/qemu/qemu_hostdev.c
@@ -1134,8 +1134,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.5.4