[libvirt] [PATCH] remote_driver.c: fix non-literal format strings w/o args

Laine Stump laine at laine.org
Thu Nov 11 17:17:33 UTC 2010


Pushed another of these under the trivial rule (with correct email address
this time!).

I guess I run into these so often because I build with --disable-nls and most other people don't...

---
 src/remote/remote_driver.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 4492b6b..f45476a 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8481,7 +8481,7 @@ remoteStreamEventAddCallback(virStreamPtr st,
 
     if (privst->cb) {
         remoteError(VIR_ERR_INTERNAL_ERROR,
-                    _("multiple stream callbacks not supported"));
+                    "%s", _("multiple stream callbacks not supported"));
         goto cleanup;
     }
 
@@ -8521,7 +8521,7 @@ remoteStreamEventUpdateCallback(virStreamPtr st,
 
     if (!privst->cb) {
         remoteError(VIR_ERR_INTERNAL_ERROR,
-                    _("no stream callback registered"));
+                    "%s", _("no stream callback registered"));
         goto cleanup;
     }
 
@@ -8548,7 +8548,7 @@ remoteStreamEventRemoveCallback(virStreamPtr st)
 
     if (!privst->cb) {
         remoteError(VIR_ERR_INTERNAL_ERROR,
-                    _("no stream callback registered"));
+                    "%s", _("no stream callback registered"));
         goto cleanup;
     }
 
-- 
1.7.1




More information about the libvir-list mailing list