diff --git a/ChangeLog b/ChangeLog index 6d964ae00713ca597d2200cb71d9b004de55f250..6060eb06dc71a69f617962e2e45adf153fcab274 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Dec 10 17:33:49 +0100 2008 Jim Meyering + + 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 fix just-broken "virsh start" and "virsh pool-start" commands diff --git a/src/openvz_conf.c b/src/openvz_conf.c index fc4ef200254acb14b967d0a028e678544a36dd08..1361c53e82d9c6bb56ad384f1eeb2b2f53ae1ef8 100644 --- a/src/openvz_conf.c +++ b/src/openvz_conf.c @@ -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; } diff --git a/src/uml_driver.c b/src/uml_driver.c index 9c0d9c4c1c201865242f80ea357b5c8067126c60..408096e636ba9d7ee3510a798efd8cf84f75cca6 100644 --- a/src/uml_driver.c +++ b/src/uml_driver.c @@ -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: