mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 12:25:52 +00:00
access: 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
d317d1d217
commit
a1f8154b3d
@ -75,7 +75,7 @@ virAccessDriverPolkitGetCaller(const char *actionid,
|
|||||||
|
|
||||||
if (!identity) {
|
if (!identity) {
|
||||||
virAccessError(VIR_ERR_ACCESS_DENIED,
|
virAccessError(VIR_ERR_ACCESS_DENIED,
|
||||||
_("Policy kit denied action %s from <anonymous>"),
|
_("Policy kit denied action %1$s from <anonymous>"),
|
||||||
actionid);
|
actionid);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ virAccessManager *virAccessManagerNew(const char *name)
|
|||||||
|
|
||||||
if (!(drv = virAccessManagerFindDriver(name))) {
|
if (!(drv = virAccessManagerFindDriver(name))) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Cannot find security driver '%s'"),
|
_("Cannot find security driver '%1$s'"),
|
||||||
name);
|
name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ virAccessManagerSanitizeError(int ret,
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
virAccessError(VIR_ERR_ACCESS_DENIED,
|
virAccessError(VIR_ERR_ACCESS_DENIED,
|
||||||
_("'%s' denied access"), driverName);
|
_("'%1$s' denied access"), driverName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user