[PATCH] virsh: fix non-literal string format

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

 



I just pushed this under the trivial rule.

These are in the newly added -V output.
---
 tools/virsh.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 6a9b5d9..0c91f15 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -11546,8 +11546,8 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
     vshPrint(ctl, _("Virsh command line tool of libvirt %s\n"), VERSION);
     vshPrint(ctl, _("See web site at %s\n\n"), "http://libvirt.org/";);
 
-    vshPrint(ctl, _("Compiled with support for:\n"));
-    vshPrint(ctl, _(" Hypervisors:"));
+    vshPrint(ctl, "%s", _("Compiled with support for:\n"));
+    vshPrint(ctl, "%s", _(" Hypervisors:"));
 #ifdef WITH_XEN
     vshPrint(ctl, " Xen");
 #endif
@@ -11583,7 +11583,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 #endif
     vshPrint(ctl, "\n");
 
-    vshPrint(ctl, _(" Networking:"));
+    vshPrint(ctl, "%s", _(" Networking:"));
 #ifdef WITH_REMOTE
     vshPrint(ctl, " Remote");
 #endif
@@ -11610,7 +11610,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 #endif
     vshPrint(ctl, "\n");
 
-    vshPrint(ctl, _(" Storage:"));
+    vshPrint(ctl, "%s", _(" Storage:"));
 #ifdef WITH_STORAGE_DIR
     vshPrint(ctl, " Dir");
 #endif
@@ -11634,7 +11634,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 #endif
     vshPrint(ctl, "\n");
 
-    vshPrint(ctl, _(" Miscellaneous:"));
+    vshPrint(ctl, "%s", _(" Miscellaneous:"));
 #ifdef ENABLE_SECDRIVER_APPARMOR
     vshPrint(ctl, " AppArmor");
 #endif
-- 
1.7.2.3

--
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]