]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Make messages printed by vshError properly translatable
authorJiri Denemark <jdenemar@redhat.com>
Thu, 20 Feb 2025 12:06:38 +0000 (13:06 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 24 Feb 2025 10:14:11 +0000 (11:14 +0100)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c

index 1b650bdd9baf7b8e549b413df1fa0f91d537027d..64507fe5608da1e20c312f03a1144db1e4762889 100644 (file)
@@ -2128,9 +2128,7 @@ vshError(vshControl *ctl, const char *format, ...)
      * printing to stderr will not interleave correctly with stdout
      * unless we flush between every transition between streams.  */
     fflush(stdout);
-    fputs(_("error: "), stderr);
-
-    fprintf(stderr, "%s\n", NULLSTR(str));
+    fprintf(stderr, _("error: %1$s\n"), NULLSTR(str));
     fflush(stderr);
 }