1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

maint: more of same, but manual: convert VIR_ERROR("%s" to VIR_ERROR0(

This commit is contained in:
Jim Meyering 2010-05-20 08:40:16 +02:00
parent 82a3c81d8c
commit cc21fd9a91
2 changed files with 6 additions and 9 deletions

View File

@ -817,8 +817,7 @@ static int qemudInitPaths(struct qemud_server *server,
snprintf_error: snprintf_error:
if (ret) if (ret)
VIR_ERROR(_("%s"), VIR_ERROR0(_("Resulting path too long for buffer in qemudInitPaths()"));
_("Resulting path too long for buffer in qemudInitPaths()"));
cleanup: cleanup:
VIR_FREE(dir_prefix); VIR_FREE(dir_prefix);

View File

@ -1520,9 +1520,8 @@ phypDomainSetCPU(virDomainPtr dom, unsigned int nvcpus)
goto err; goto err;
if (nvcpus > phypGetLparCPUMAX(dom)) { if (nvcpus > phypGetLparCPUMAX(dom)) {
VIR_ERROR(_("%s"), VIR_ERROR0(_("You are trying to set a number of CPUs bigger than "
"You are trying to set a number of CPUs bigger than " "the max possible.."));
"the max possible..");
goto err; goto err;
} }
@ -1547,9 +1546,8 @@ phypDomainSetCPU(virDomainPtr dom, unsigned int nvcpus)
ret = phypExec(session, cmd, &exit_status, dom->conn); ret = phypExec(session, cmd, &exit_status, dom->conn);
if (exit_status < 0) { if (exit_status < 0) {
VIR_ERROR(_("%s"), VIR_ERROR0(_("Possibly you don't have IBM Tools installed in your LPAR."
"Possibly you don't have IBM Tools installed in your LPAR." "Contact your support to enable this feature."));
"Contact your support to enable this feature.");
goto err; goto err;
} }
@ -1690,7 +1688,7 @@ phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
ret = phypExec(session, cmd, &exit_status, conn); ret = phypExec(session, cmd, &exit_status, conn);
if (exit_status < 0) { if (exit_status < 0) {
VIR_ERROR(_("%s\"%s\""), "Unable to create LPAR. Reason: ", ret); VIR_ERROR(_("Unable to create LPAR. Reason: '%s'"), ret);
goto err; goto err;
} }