[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc: Use new DBGPRINTF for a few debugging output messages
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1275035469 -3600 # Node ID 65a7ac5e0a0abbfe8347a83913215964e50d9587 # Parent 779c0ef9682c994d2354844295a1f921cce2857c libxc: Use new DBGPRINTF for a few debugging output messages oubuf and batch restore write messages should be sent with level XTL_DEBUG so that they don't disturb progress output even with -v. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/libxc/xc_domain_restore.c | 2 +- tools/libxc/xc_domain_save.c | 2 +- tools/libxc/xc_private.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff -r 779c0ef9682c -r 65a7ac5e0a0a tools/libxc/xc_domain_restore.c --- a/tools/libxc/xc_domain_restore.c Fri May 28 09:30:19 2010 +0100 +++ b/tools/libxc/xc_domain_restore.c Fri May 28 09:31:09 2010 +0100 @@ -1498,7 +1498,7 @@ int xc_domain_restore(xc_interface *xch, } j = pagebuf.nr_pages; - DPRINTF("batch %d\n",j); + DBGPRINTF("batch %d\n",j); if ( j == 0 ) { /* catch vcpu updates */ diff -r 779c0ef9682c -r 65a7ac5e0a0a tools/libxc/xc_domain_save.c --- a/tools/libxc/xc_domain_save.c Fri May 28 09:30:19 2010 +0100 +++ b/tools/libxc/xc_domain_save.c Fri May 28 09:31:09 2010 +0100 @@ -172,7 +172,7 @@ static inline int outbuf_write(xc_interf struct outbuf* ob, void* buf, size_t len) { if ( len > ob->size - ob->pos ) { - DPRINTF("outbuf_write: %zu > %zu@%zu\n", len, ob->size - ob->pos, ob->pos); + DBGPRINTF("outbuf_write: %zu > %zu@%zu\n", len, ob->size - ob->pos, ob->pos); return -1; } diff -r 779c0ef9682c -r 65a7ac5e0a0a tools/libxc/xc_private.h --- a/tools/libxc/xc_private.h Fri May 28 09:30:19 2010 +0100 +++ b/tools/libxc/xc_private.h Fri May 28 09:31:09 2010 +0100 @@ -77,6 +77,7 @@ void xc_report_progress_step(xc_interfac #define IPRINTF(_f, _a...) xc_report(xch, xch->error_handler, XTL_INFO,0, _f , ## _a) #define DPRINTF(_f, _a...) xc_report(xch, xch->error_handler, XTL_DETAIL,0, _f , ## _a) +#define DBGPRINTF(_f, _a...) xc_report(xch, xch->error_handler, XTL_DEBUG,0, _f , ## _a) #define ERROR(_m, _a...) xc_report_error(xch,XC_INTERNAL_ERROR,_m , ## _a ) #define PERROR(_m, _a...) xc_report_error(xch,XC_INTERNAL_ERROR,_m \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |