提交 87924a13 编写于 作者: D Doug Goldstein 提交者: Cole Robinson

virsh: Cleanup virsh -V output

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: NDoug Goldstein <cardoe@cardoe.com>
Signed-off-by: NEric Blake <eblake@redhat.com>
(cherry picked from commit 9faaaba4)
上级 6fba8c1f
...@@ -19776,35 +19776,41 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) ...@@ -19776,35 +19776,41 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
vshPrint(ctl, "%s", _("Compiled with support for:\n")); vshPrint(ctl, "%s", _("Compiled with support for:\n"));
vshPrint(ctl, "%s", _(" Hypervisors:")); vshPrint(ctl, "%s", _(" Hypervisors:"));
#ifdef WITH_XEN
vshPrint(ctl, " Xen");
#endif
#ifdef WITH_QEMU #ifdef WITH_QEMU
vshPrint(ctl, " QEmu/KVM"); vshPrint(ctl, " QEmu/KVM");
#endif #endif
#ifdef WITH_LXC
vshPrint(ctl, " LXC");
#endif
#ifdef WITH_UML #ifdef WITH_UML
vshPrint(ctl, " UML"); vshPrint(ctl, " UML");
#endif #endif
#ifdef WITH_XEN
vshPrint(ctl, " Xen");
#endif
#ifdef WITH_LIBXL
vshPrint(ctl, " LibXL");
#endif
#ifdef WITH_OPENVZ #ifdef WITH_OPENVZ
vshPrint(ctl, " OpenVZ"); vshPrint(ctl, " OpenVZ");
#endif #endif
#ifdef WITH_VBOX #ifdef WITH_VMWARE
vshPrint(ctl, " VirtualBox"); vshPrint(ctl, " VMWare");
#endif #endif
#ifdef WITH_XENAPI #ifdef WITH_PHYP
vshPrint(ctl, " XenAPI"); vshPrint(ctl, " PHYP");
#endif #endif
#ifdef WITH_LXC #ifdef WITH_VBOX
vshPrint(ctl, " LXC"); vshPrint(ctl, " VirtualBox");
#endif #endif
#ifdef WITH_ESX #ifdef WITH_ESX
vshPrint(ctl, " ESX"); vshPrint(ctl, " ESX");
#endif #endif
#ifdef WITH_PHYP #ifdef WITH_HYPERV
vshPrint(ctl, " PHYP"); vshPrint(ctl, " Hyper-V");
#endif #endif
#ifdef WITH_ONE #ifdef WITH_XENAPI
vshPrint(ctl, " ONE"); vshPrint(ctl, " XenAPI");
#endif #endif
#ifdef WITH_TEST #ifdef WITH_TEST
vshPrint(ctl, " Test"); vshPrint(ctl, " Test");
...@@ -19815,9 +19821,6 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) ...@@ -19815,9 +19821,6 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
#ifdef WITH_REMOTE #ifdef WITH_REMOTE
vshPrint(ctl, " Remote"); vshPrint(ctl, " Remote");
#endif #endif
#ifdef WITH_PROXY
vshPrint(ctl, " Proxy");
#endif
#ifdef WITH_LIBVIRTD #ifdef WITH_LIBVIRTD
vshPrint(ctl, " Daemon"); vshPrint(ctl, " Daemon");
#endif #endif
...@@ -19828,7 +19831,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) ...@@ -19828,7 +19831,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
vshPrint(ctl, " Bridging"); vshPrint(ctl, " Bridging");
#endif #endif
#ifdef WITH_NETCF #ifdef WITH_NETCF
vshPrint(ctl, " Netcf"); vshPrint(ctl, " Interface");
#endif #endif
#ifdef WITH_NWFILTER #ifdef WITH_NWFILTER
vshPrint(ctl, " Nwfilter"); vshPrint(ctl, " Nwfilter");
...@@ -19863,6 +19866,9 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) ...@@ -19863,6 +19866,9 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
vshPrint(ctl, "\n"); vshPrint(ctl, "\n");
vshPrint(ctl, "%s", _(" Miscellaneous:")); vshPrint(ctl, "%s", _(" Miscellaneous:"));
#ifdef WITH_NODE_DEVICES
vshPrint(ctl, " Nodedev");
#endif
#ifdef WITH_SECDRIVER_APPARMOR #ifdef WITH_SECDRIVER_APPARMOR
vshPrint(ctl, " AppArmor"); vshPrint(ctl, " AppArmor");
#endif #endif
...@@ -19875,7 +19881,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) ...@@ -19875,7 +19881,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
#ifdef ENABLE_DEBUG #ifdef ENABLE_DEBUG
vshPrint(ctl, " Debug"); vshPrint(ctl, " Debug");
#endif #endif
#ifdef WITH_DTRACE #ifdef WITH_DTRACE_PROBES
vshPrint(ctl, " DTrace"); vshPrint(ctl, " DTrace");
#endif #endif
#ifdef USE_READLINE #ifdef USE_READLINE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册