[PATCH 3/5] virsh: Emit warning when running on a deprecated architecture

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

 



This will make even users who don't compile libvirt themselves,
eg. because they're using binary packages provided by their
distribution of choice, aware of the fact that support for the
architecture they're running on will be dropped in the future.
---
 tools/virsh.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/virsh.c b/tools/virsh.c
index 7eb51ab..b24686c 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -957,6 +957,12 @@ main(int argc, char **argv)
         ctl->connname = vshStrdup(ctl,
                                   virGetEnvBlockSUID("VIRSH_DEFAULT_CONNECT_URI"));
 
+#if ENABLE_DEPRECATED_ARCHITECTURES
+    vshPrint(ctl, "%s",
+             _("Warning: virsh is running on a deprecated architecture\n"
+               "         Support for this architecture will be dropped in the future\n\n"));
+#endif
+
     if (!ctl->imode) {
         ret = vshCommandRun(ctl, ctl->cmd);
     } else {
-- 
2.7.4

--
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]
  Powered by Linux