mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
admin: Update format strings in translated messages
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a1f8154b3d
commit
044ec5f7d2
@ -78,7 +78,7 @@ remoteAdmClientNew(virNetServerClient *client G_GNUC_UNUSED,
|
|||||||
(long long)clientuid);
|
(long long)clientuid);
|
||||||
|
|
||||||
if (geteuid() != clientuid) {
|
if (geteuid() != clientuid) {
|
||||||
virReportRestrictedError(_("Disallowing client %lld with uid %lld"),
|
virReportRestrictedError(_("Disallowing client %1$lld with uid %2$lld"),
|
||||||
(long long)clientpid,
|
(long long)clientpid,
|
||||||
(long long)clientuid);
|
(long long)clientuid);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -258,7 +258,7 @@ adminDispatchServerSetThreadpoolParameters(virNetServer *server G_GNUC_UNUSED,
|
|||||||
|
|
||||||
if (!(srv = virNetDaemonGetServer(priv->dmn, args->srv.name))) {
|
if (!(srv = virNetDaemonGetServer(priv->dmn, args->srv.name))) {
|
||||||
virReportError(VIR_ERR_NO_SERVER,
|
virReportError(VIR_ERR_NO_SERVER,
|
||||||
_("no server with matching name '%s' found"),
|
_("no server with matching name '%1$s' found"),
|
||||||
args->srv.name);
|
args->srv.name);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -303,14 +303,14 @@ adminDispatchClientGetInfo(virNetServer *server G_GNUC_UNUSED,
|
|||||||
|
|
||||||
if (!(srv = virNetDaemonGetServer(priv->dmn, args->clnt.srv.name))) {
|
if (!(srv = virNetDaemonGetServer(priv->dmn, args->clnt.srv.name))) {
|
||||||
virReportError(VIR_ERR_NO_SERVER,
|
virReportError(VIR_ERR_NO_SERVER,
|
||||||
_("no server with matching name '%s' found"),
|
_("no server with matching name '%1$s' found"),
|
||||||
args->clnt.srv.name);
|
args->clnt.srv.name);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(clnt = virNetServerGetClient(srv, args->clnt.id))) {
|
if (!(clnt = virNetServerGetClient(srv, args->clnt.id))) {
|
||||||
virReportError(VIR_ERR_NO_CLIENT,
|
virReportError(VIR_ERR_NO_CLIENT,
|
||||||
_("no client with matching id '%llu' found"),
|
_("no client with matching id '%1$llu' found"),
|
||||||
(unsigned long long) args->clnt.id);
|
(unsigned long long) args->clnt.id);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -390,7 +390,7 @@ adminDispatchServerSetClientLimits(virNetServer *server G_GNUC_UNUSED,
|
|||||||
|
|
||||||
if (!(srv = virNetDaemonGetServer(priv->dmn, args->srv.name))) {
|
if (!(srv = virNetDaemonGetServer(priv->dmn, args->srv.name))) {
|
||||||
virReportError(VIR_ERR_NO_SERVER,
|
virReportError(VIR_ERR_NO_SERVER,
|
||||||
_("no server with matching name '%s' found"),
|
_("no server with matching name '%1$s' found"),
|
||||||
args->srv.name);
|
args->srv.name);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ getSocketPath(virURI *uri)
|
|||||||
sock_path = g_strdup(param->value);
|
sock_path = g_strdup(param->value);
|
||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unknown URI parameter '%s'"), param->name);
|
_("Unknown URI parameter '%1$s'"), param->name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,7 +134,7 @@ getSocketPath(virURI *uri)
|
|||||||
legacy = true;
|
legacy = true;
|
||||||
} else if (!STRPREFIX(uri->scheme, "virt")) {
|
} else if (!STRPREFIX(uri->scheme, "virt")) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported URI scheme '%s'"),
|
_("Unsupported URI scheme '%1$s'"),
|
||||||
uri->scheme);
|
uri->scheme);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ getSocketPath(virURI *uri)
|
|||||||
sock_path = g_strdup_printf("%s/%s", rundir, sockbase);
|
sock_path = g_strdup_printf("%s/%s", rundir, sockbase);
|
||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Invalid URI path '%s', try '/system'"),
|
_("Invalid URI path '%1$s', try '/system'"),
|
||||||
NULLSTR_EMPTY(uri->path));
|
NULLSTR_EMPTY(uri->path));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user