mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
avoid format string warnings
* src/openvz_conf.c (openvzGetNodeCPUs): Add "%s" arg before _(...). * src/uml_driver.c (umlDomainBlockPeek): Likewise.
This commit is contained in:
parent
3693a02fff
commit
7989276259
@ -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>
|
Tue Dec 9 2008 22:35:43 +0100 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
fix just-broken "virsh start" and "virsh pool-start" commands
|
fix just-broken "virsh start" and "virsh pool-start" commands
|
||||||
|
@ -466,7 +466,7 @@ openvzGetNodeCPUs(void)
|
|||||||
|
|
||||||
if (virNodeInfoPopulate(NULL, &nodeinfo) < 0) {
|
if (virNodeInfoPopulate(NULL, &nodeinfo) < 0) {
|
||||||
openvzError(NULL, VIR_ERR_INTERNAL_ERROR,
|
openvzError(NULL, VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Cound not read nodeinfo"));
|
"%s", _("Cound not read nodeinfo"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1764,13 +1764,13 @@ umlDomainBlockPeek (virDomainPtr dom,
|
|||||||
|
|
||||||
if (!vm) {
|
if (!vm) {
|
||||||
umlReportError (dom->conn, dom, NULL, VIR_ERR_INVALID_DOMAIN,
|
umlReportError (dom->conn, dom, NULL, VIR_ERR_INVALID_DOMAIN,
|
||||||
_("no domain with matching uuid"));
|
"%s", _("no domain with matching uuid"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!path || path[0] == '\0') {
|
if (!path || path[0] == '\0') {
|
||||||
umlReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
|
umlReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
|
||||||
_("NULL or empty path"));
|
"%s", _("NULL or empty path"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1807,7 +1807,7 @@ umlDomainBlockPeek (virDomainPtr dom,
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
umlReportError (dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
|
umlReportError (dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
|
||||||
_("invalid path"));
|
"%s", _("invalid path"));
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user