diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2013-07-10 17:46:30 +0100 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-07-12 17:34:03 +0100 |
commit | 395f777ae0eed67b03596fe38d6d90f307ddd036 (patch) | |
tree | 6a6ddec164ce5c61f2e720f9409764929fafbd41 /tools/libxl | |
parent | cd79a9bf3613b249bbca8aeded309cbd701f9ce1 (diff) | |
download | xen-395f777ae0eed67b03596fe38d6d90f307ddd036.tar.gz xen-395f777ae0eed67b03596fe38d6d90f307ddd036.tar.bz2 xen-395f777ae0eed67b03596fe38d6d90f307ddd036.zip |
xl: Add 'xen_version' to `xl info`
Getting the full Xen version in an easily scriptable way is awkward,
especially if trying to piece together from xen_{major,minor,extra}.
This reflects $(XEN_FULLVERSION) in the build system (but under a more
sensible name, as $(XEN_VERSION) is just the major number).
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Matt Wilson <msw@amazon.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 8a478ba610..d365f904c0 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4582,6 +4582,8 @@ static void output_xeninfo(void) printf("xen_major : %d\n", info->xen_version_major); printf("xen_minor : %d\n", info->xen_version_minor); printf("xen_extra : %s\n", info->xen_version_extra); + printf("xen_version : %d.%d%s\n", info->xen_version_major, + info->xen_version_minor, info->xen_version_extra); printf("xen_caps : %s\n", info->capabilities); printf("xen_scheduler : %s\n", libxl_scheduler_to_string(sched)); printf("xen_pagesize : %u\n", info->pagesize); |