[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages
Xenstore messages for diagnostic purposes are lost today in case xenstore is running under mini-os instead in a dom0 daemon. Use printk of mini-os in this situation. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- tools/xenstore/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/xenstore/utils.c b/tools/xenstore/utils.c index a1ac125..ea8a5e8 100644 --- a/tools/xenstore/utils.c +++ b/tools/xenstore/utils.c @@ -10,6 +10,11 @@ #include <signal.h> #include "utils.h" +#ifdef __MINIOS__ +void printk(const char *fmt, ...); + +void (*xprintf)(const char *fmt, ...) = printk; +#else static void default_xprintf(const char *fmt, ...) { va_list args; @@ -21,6 +26,7 @@ static void default_xprintf(const char *fmt, ...) } void (*xprintf)(const char *fmt, ...) = default_xprintf; +#endif void barf(const char *fmt, ...) { -- 2.6.2 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |