]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
avoid format string warnings
authorJim Meyering <meyering@redhat.com>
Wed, 10 Dec 2008 16:35:00 +0000 (16:35 +0000)
committerJim Meyering <meyering@redhat.com>
Wed, 10 Dec 2008 16:35:00 +0000 (16:35 +0000)
* src/openvz_conf.c (openvzGetNodeCPUs): Add "%s" arg before _(...).
* src/uml_driver.c (umlDomainBlockPeek): Likewise.

ChangeLog
src/openvz_conf.c
src/uml_driver.c

index 6d964ae00713ca597d2200cb71d9b004de55f250..6060eb06dc71a69f617962e2e45adf153fcab274 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Dec 10 17:33:49 +0100 2008 Jim Meyering <meyering@redhat.com>
+
+       avoid format string warnings
+       * src/openvz_conf.c (openvzGetNodeCPUs): Add "%s" arg before _(...).
+       * src/uml_driver.c (umlDomainBlockPeek): Likewise.
+
 Tue Dec  9 2008 22:35:43 +0100 Jim Meyering <meyering@redhat.com>
 
        fix just-broken "virsh start" and "virsh pool-start" commands
index fc4ef200254acb14b967d0a028e678544a36dd08..1361c53e82d9c6bb56ad384f1eeb2b2f53ae1ef8 100644 (file)
@@ -466,7 +466,7 @@ openvzGetNodeCPUs(void)
 
     if (virNodeInfoPopulate(NULL, &nodeinfo) < 0) {
         openvzError(NULL, VIR_ERR_INTERNAL_ERROR,
-                      _("Cound not read nodeinfo"));
+                    "%s", _("Cound not read nodeinfo"));
         return 0;
     }
 
index 9c0d9c4c1c201865242f80ea357b5c8067126c60..408096e636ba9d7ee3510a798efd8cf84f75cca6 100644 (file)
@@ -1764,13 +1764,13 @@ umlDomainBlockPeek (virDomainPtr dom,
 
     if (!vm) {
         umlReportError (dom->conn, dom, NULL, VIR_ERR_INVALID_DOMAIN,
-                          _("no domain with matching uuid"));
+                        "%s", _("no domain with matching uuid"));
         goto cleanup;
     }
 
     if (!path || path[0] == '\0') {
         umlReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
-                         _("NULL or empty path"));
+                       "%s", _("NULL or empty path"));
         goto cleanup;
     }
 
@@ -1807,7 +1807,7 @@ umlDomainBlockPeek (virDomainPtr dom,
         ret = 0;
     } else {
         umlReportError (dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
-                        _("invalid path"));
+                        "%s", _("invalid path"));
     }
 
 cleanup: