On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote:
> Xenstore messages for diagnostic purposes are lost today in case
> xenstore is running under mini-os instead in a dom0 daemon.

Where does vfprintf end up under mini-os? 

> Use printk of mini-os in this situation.

and this now ends up on the console and (for a debug h/v) in the xen dmesg,
is that right?



> 
> 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, ...)
>  {

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to