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 <jgr...@suse.com>
---
 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@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to