[libvirt] [PATCH] Fix warning about a non-literal format string in qemu_driver.c

Laine Stump laine at laine.org
Fri Oct 15 15:59:30 UTC 2010


I just committed this under the obvious fix rule.
---
 src/qemu/qemu_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 16f34f7..0ce2d40 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -10385,7 +10385,7 @@ qemuDomainIsMigratable(virDomainDefPtr def)
 {
     if (def->nhostdevs > 0) {
         qemuReportError(VIR_ERR_OPERATION_INVALID,
-                _("Domain with assigned host devices cannot be migrated"));
+            "%s", _("Domain with assigned host devices cannot be migrated"));
         return false;
     }
 
-- 
1.7.3.1




More information about the libvir-list mailing list