[PATCH] virsh: Don't print extra '-'s in error message for -k and -K options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The error message contains one extra dash.
---

Notes:
    Pushed as trivial.

 tools/virsh.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 3927120..30a84c1 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -3472,7 +3472,7 @@ vshParseArgv(vshControl *ctl, int argc, char **argv)
         case 'k':
             if (virStrToLong_i(optarg, NULL, 0, &keepalive) < 0 ||
                 keepalive < 0) {
-                vshError(ctl, _("option -%s requires a positive numeric argument"),
+                vshError(ctl, _("option %s requires a positive numeric argument"),
                          longindex == -1 ? "-k" : "--keepalive-interval");
                 exit(EXIT_FAILURE);
             }
@@ -3481,7 +3481,7 @@ vshParseArgv(vshControl *ctl, int argc, char **argv)
         case 'K':
             if (virStrToLong_i(optarg, NULL, 0, &keepalive) < 0 ||
                 keepalive < 0) {
-                vshError(ctl, _("option -%s requires a positive numeric argument"),
+                vshError(ctl, _("option %s requires a positive numeric argument"),
                          longindex == -1 ? "-K" : "--keepalive-count");
                 exit(EXIT_FAILURE);
             }
-- 
2.0.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]