From: Jiri Denemark Date: Thu, 9 Mar 2023 12:39:15 +0000 (+0100) Subject: secret: Update format strings in translated messages X-Git-Tag: v9.3.0-rc1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=181d61fd5ce65548d49bb411e23555997cf020a6;p=thirdparty%2Flibvirt.git secret: Update format strings in translated messages Signed-off-by: Jiri Denemark Reviewed-by: Daniel P. Berrangé --- diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c index 43d2a0c05a..c7bd65b4e9 100644 --- a/src/secret/secret_driver.c +++ b/src/secret/secret_driver.c @@ -83,7 +83,7 @@ secretObjFromSecret(virSecretPtr secret) virUUIDFormat(secret->uuid, uuidstr); if (!(obj = virSecretObjListFindByUUID(driver->secrets, uuidstr))) { virReportError(VIR_ERR_NO_SECRET, - _("no secret with matching uuid '%s'"), uuidstr); + _("no secret with matching uuid '%1$s'"), uuidstr); return NULL; } return obj; @@ -164,7 +164,7 @@ secretLookupByUUID(virConnectPtr conn, virUUIDFormat(uuid, uuidstr); if (!(obj = virSecretObjListFindByUUID(driver->secrets, uuidstr))) { virReportError(VIR_ERR_NO_SECRET, - _("no secret with matching uuid '%s'"), uuidstr); + _("no secret with matching uuid '%1$s'"), uuidstr); goto cleanup; } @@ -195,7 +195,7 @@ secretLookupByUsage(virConnectPtr conn, if (!(obj = virSecretObjListFindByUsage(driver->secrets, usageType, usageID))) { virReportError(VIR_ERR_NO_SECRET, - _("no secret with matching usage '%s'"), usageID); + _("no secret with matching usage '%1$s'"), usageID); goto cleanup; } @@ -524,13 +524,13 @@ secretStateInitialize(bool privileged, } if (g_mkdir_with_parents(driver->configDir, S_IRWXU) < 0) { - virReportSystemError(errno, _("cannot create config directory '%s'"), + virReportSystemError(errno, _("cannot create config directory '%1$s'"), driver->configDir); goto error; } if (g_mkdir_with_parents(driver->stateDir, S_IRWXU) < 0) { - virReportSystemError(errno, _("cannot create state directory '%s'"), + virReportSystemError(errno, _("cannot create state directory '%1$s'"), driver->stateDir); goto error; } @@ -594,8 +594,7 @@ secretConnectOpen(virConnectPtr conn, if (STRNEQ(root, driver->embeddedRoot)) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Cannot open embedded driver at path '%s', " - "already open with path '%s'"), + _("Cannot open embedded driver at path '%1$s', already open with path '%2$s'"), root, driver->embeddedRoot); return VIR_DRV_OPEN_ERROR; }