[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages



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

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.