Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen Retrive and print the hypervisor "extra" (t...
details: https://anonhg.NetBSD.org/src/rev/628704f780f9
branches: trunk
changeset: 778590:628704f780f9
user: riz <riz%NetBSD.org@localhost>
date: Fri Apr 06 03:20:43 2012 +0000
description:
Retrive and print the hypervisor "extra" (teeny) version.
>From Manuel Bouyer.
diffstat:
sys/arch/xen/xen/hypervisor.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r cdb73ac072cc -r 628704f780f9 sys/arch/xen/xen/hypervisor.c
--- a/sys/arch/xen/xen/hypervisor.c Fri Apr 06 02:52:00 2012 +0000
+++ b/sys/arch/xen/xen/hypervisor.c Fri Apr 06 03:20:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hypervisor.c,v 1.61 2012/02/17 18:42:19 bouyer Exp $ */
+/* $NetBSD: hypervisor.c,v 1.62 2012/04/06 03:20:43 riz Exp $ */
/*
* Copyright (c) 2005 Manuel Bouyer.
@@ -53,7 +53,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.61 2012/02/17 18:42:19 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.62 2012/04/06 03:20:43 riz Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -210,12 +210,15 @@
#endif
#endif /* NPCI */
union hypervisor_attach_cookie hac;
+ char xen_extra_version[XEN_EXTRAVERSION_LEN];
xenkernfs_init();
xen_version = HYPERVISOR_xen_version(XENVER_version, NULL);
- aprint_normal(": Xen version %d.%d\n", XEN_MAJOR(xen_version),
- XEN_MINOR(xen_version));
+ memset(xen_extra_version, 0, sizeof(xen_extra_version));
+ HYPERVISOR_xen_version(XENVER_extraversion, xen_extra_version);
+ aprint_normal(": Xen version %d.%d%s\n", XEN_MAJOR(xen_version),
+ XEN_MINOR(xen_version), xen_extra_version);
xengnt_init();
events_init();
Home |
Main Index |
Thread Index |
Old Index