]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Cleanup virsh -V output
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 26 Jun 2012 18:31:31 +0000 (13:31 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 29 Jun 2012 21:40:22 +0000 (15:40 -0600)
Fixed up virsh -V output by removing invalid WITH_PROXY & WITH_ONE
checks, adding several missing checks, and fixing the DTrace check.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh.c

index a783f471b295bdaeb09abb3ecfc7325f5935999e..53d1825cd75ac60461f5837fec506b6f077e9b86 100644 (file)
@@ -20781,35 +20781,41 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 
     vshPrint(ctl, "%s", _("Compiled with support for:\n"));
     vshPrint(ctl, "%s", _(" Hypervisors:"));
-#ifdef WITH_XEN
-    vshPrint(ctl, " Xen");
-#endif
 #ifdef WITH_QEMU
     vshPrint(ctl, " QEmu/KVM");
 #endif
+#ifdef WITH_LXC
+    vshPrint(ctl, " LXC");
+#endif
 #ifdef WITH_UML
     vshPrint(ctl, " UML");
 #endif
+#ifdef WITH_XEN
+    vshPrint(ctl, " Xen");
+#endif
+#ifdef WITH_LIBXL
+    vshPrint(ctl, " LibXL");
+#endif
 #ifdef WITH_OPENVZ
     vshPrint(ctl, " OpenVZ");
 #endif
-#ifdef WITH_VBOX
-    vshPrint(ctl, " VirtualBox");
+#ifdef WITH_VMWARE
+    vshPrint(ctl, " VMWare");
 #endif
-#ifdef WITH_XENAPI
-    vshPrint(ctl, " XenAPI");
+#ifdef WITH_PHYP
+    vshPrint(ctl, " PHYP");
 #endif
-#ifdef WITH_LXC
-    vshPrint(ctl, " LXC");
+#ifdef WITH_VBOX
+    vshPrint(ctl, " VirtualBox");
 #endif
 #ifdef WITH_ESX
     vshPrint(ctl, " ESX");
 #endif
-#ifdef WITH_PHYP
-    vshPrint(ctl, " PHYP");
+#ifdef WITH_HYPERV
+    vshPrint(ctl, " Hyper-V");
 #endif
-#ifdef WITH_ONE
-    vshPrint(ctl, " ONE");
+#ifdef WITH_XENAPI
+    vshPrint(ctl, " XenAPI");
 #endif
 #ifdef WITH_TEST
     vshPrint(ctl, " Test");
@@ -20820,9 +20826,6 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 #ifdef WITH_REMOTE
     vshPrint(ctl, " Remote");
 #endif
-#ifdef WITH_PROXY
-    vshPrint(ctl, " Proxy");
-#endif
 #ifdef WITH_LIBVIRTD
     vshPrint(ctl, " Daemon");
 #endif
@@ -20833,7 +20836,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
     vshPrint(ctl, " Bridging");
 #endif
 #ifdef WITH_NETCF
-    vshPrint(ctl, " Netcf");
+    vshPrint(ctl, " Interface");
 #endif
 #ifdef WITH_NWFILTER
     vshPrint(ctl, " Nwfilter");
@@ -20871,6 +20874,9 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
     vshPrint(ctl, "\n");
 
     vshPrint(ctl, "%s", _(" Miscellaneous:"));
+#ifdef WITH_NODE_DEVICES
+    vshPrint(ctl, " Nodedev");
+#endif
 #ifdef WITH_SECDRIVER_APPARMOR
     vshPrint(ctl, " AppArmor");
 #endif
@@ -20883,7 +20889,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 #ifdef ENABLE_DEBUG
     vshPrint(ctl, " Debug");
 #endif
-#ifdef WITH_DTRACE
+#ifdef WITH_DTRACE_PROBES
     vshPrint(ctl, " DTrace");
 #endif
 #ifdef USE_READLINE