[PATCH 04/13] virsh: Make messages printed by vshError properly translatable

Jiri Denemark posted 13 patches 9 months, 4 weeks ago
[PATCH 04/13] virsh: Make messages printed by vshError properly translatable
Posted by Jiri Denemark 9 months, 4 weeks ago
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 tools/vsh.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/vsh.c b/tools/vsh.c
index 1b650bdd9b..64507fe560 100644
--- a/tools/vsh.c
+++ b/tools/vsh.c
@@ -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);
 }
 
-- 
2.48.1