提交 79892762 编写于 作者: J Jim Meyering

avoid format string warnings

* src/openvz_conf.c (openvzGetNodeCPUs): Add "%s" arg before _(...).
* src/uml_driver.c (umlDomainBlockPeek): Likewise.
上级 3693a02f
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
......
......@@ -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;
}
......
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册