[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenpaging: print DPRINTF ouput if XENPAGING_DEBUG is in environment
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1292352524 0 # Node ID c13f0bb3479da440cffe81079f3b9f58defdb26d # Parent fdf95845c2f8f1a48f1bf46f184404be4d835a8a xenpaging: print DPRINTF ouput if XENPAGING_DEBUG is in environment No DPRINTF output is logged because the default loglevel is to low in libxc. Recognize the XENPAGING_DEBUG environment variable to change the default loglevel at runtime. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/xenpaging/xenpaging.c | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff -r fdf95845c2f8 -r c13f0bb3479d tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c Tue Dec 14 18:47:52 2010 +0000 +++ b/tools/xenpaging/xenpaging.c Tue Dec 14 18:48:44 2010 +0000 @@ -39,12 +39,6 @@ #include "policy.h" #include "xenpaging.h" - -#if 0 -#undef DPRINTF -#define DPRINTF(...) ((void)0) -#endif - static char filename[80]; static int interrupted; static void close_handler(int sig) @@ -83,9 +77,12 @@ xenpaging_t *xenpaging_init(xc_interface { xenpaging_t *paging; xc_interface *xch; + xentoollog_logger *dbg = NULL; int rc; - xch = xc_interface_open(NULL, NULL, 0); + if ( getenv("XENPAGING_DEBUG") ) + dbg = (xentoollog_logger *)xtl_createlogger_stdiostream(stderr, XTL_DEBUG, 0); + xch = xc_interface_open(dbg, NULL, 0); if ( !xch ) goto err_iface; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |