[libvirt] [PATCH] Eliminate compiler warning due to gettext string with no format args

Laine Stump laine at laine.org
Tue Jul 13 03:41:26 UTC 2010


From: Laine Stump <laine at redhat.com>

I just pushed this trivial fix, since it breaks the build for anyone
who uses -Wformat-security -Werror.

---
 tools/virsh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 8e6e2b4..38ecc0f 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -1462,7 +1462,7 @@ cmdManagedSaveRemove(vshControl *ctl, const vshCmd *cmd)
 
     hassave = virDomainHasManagedSaveImage(dom, 0);
     if (hassave < 0) {
-        vshError(ctl, _("Failed to check for domain managed save image"));
+        vshError(ctl, "%s", _("Failed to check for domain managed save image"));
         goto cleanup;
     }
 
-- 
1.7.1.1




More information about the libvir-list mailing list