]> xenbits.xensource.com Git - libvirt.git/commitdiff
admin: Update format strings in translated messages
authorJiri Denemark <jdenemar@redhat.com>
Thu, 9 Mar 2023 10:16:39 +0000 (11:16 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Sat, 1 Apr 2023 09:40:32 +0000 (11:40 +0200)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/admin/admin_server_dispatch.c
src/admin/libvirt-admin.c

index b3e7be89658bb5fb235011b9c0d09f2d1d7d8be8..ae8a8d4fa6950465d0e82b5ec02f43abad648e64 100644 (file)
@@ -78,7 +78,7 @@ remoteAdmClientNew(virNetServerClient *client G_GNUC_UNUSED,
               (long long)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)clientuid);
         return NULL;
@@ -258,7 +258,7 @@ adminDispatchServerSetThreadpoolParameters(virNetServer *server G_GNUC_UNUSED,
 
     if (!(srv = virNetDaemonGetServer(priv->dmn, args->srv.name))) {
         virReportError(VIR_ERR_NO_SERVER,
-                       _("no server with matching name '%s' found"),
+                       _("no server with matching name '%1$s' found"),
                        args->srv.name);
         goto cleanup;
     }
@@ -303,14 +303,14 @@ adminDispatchClientGetInfo(virNetServer *server G_GNUC_UNUSED,
 
     if (!(srv = virNetDaemonGetServer(priv->dmn, args->clnt.srv.name))) {
         virReportError(VIR_ERR_NO_SERVER,
-                       _("no server with matching name '%s' found"),
+                       _("no server with matching name '%1$s' found"),
                        args->clnt.srv.name);
         goto cleanup;
     }
 
     if (!(clnt = virNetServerGetClient(srv, args->clnt.id))) {
         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);
         goto cleanup;
     }
@@ -390,7 +390,7 @@ adminDispatchServerSetClientLimits(virNetServer *server G_GNUC_UNUSED,
 
     if (!(srv = virNetDaemonGetServer(priv->dmn, args->srv.name))) {
         virReportError(VIR_ERR_NO_SERVER,
-                       _("no server with matching name '%s' found"),
+                       _("no server with matching name '%1$s' found"),
                        args->srv.name);
         goto cleanup;
     }
index 1786a283e5850dad36acf5988c9acc5e06cdf598..3c756eb376a9c737c995659d0341f7a1d3b89a09 100644 (file)
@@ -116,7 +116,7 @@ getSocketPath(virURI *uri)
             sock_path = g_strdup(param->value);
         } else {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                           _("Unknown URI parameter '%s'"), param->name);
+                           _("Unknown URI parameter '%1$s'"), param->name);
             return NULL;
         }
     }
@@ -134,7 +134,7 @@ getSocketPath(virURI *uri)
             legacy = true;
         } else if (!STRPREFIX(uri->scheme, "virt")) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                           _("Unsupported URI scheme '%s'"),
+                           _("Unsupported URI scheme '%1$s'"),
                            uri->scheme);
             return NULL;
         }
@@ -151,7 +151,7 @@ getSocketPath(virURI *uri)
             sock_path = g_strdup_printf("%s/%s", rundir, sockbase);
         } else {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                           _("Invalid URI path '%s', try '/system'"),
+                           _("Invalid URI path '%1$s', try '/system'"),
                            NULLSTR_EMPTY(uri->path));
             return NULL;
         }