From: Ian Jackson Subject: [PATCH 08/14] libxc: Use new DBGPRINTF for a few debugging output messages Date: Thu, 27 May 2010 17:01:08 +0100 Message-ID: <1274976074-3965-9-git-send-email-ian.jackson@eu.citrix.com> References: <1274976074-3965-1-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-2-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-3-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-4-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-5-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-6-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-7-git-send-email-ian.jackson@eu.citrix.com> <1274976074-3965-8-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1274976074-3965-8-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org 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 --- 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 --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c index 34a175c..508cebd 100644 --- a/tools/libxc/xc_domain_restore.c +++ b/tools/libxc/xc_domain_restore.c @@ -1498,7 +1498,7 @@ int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom, } j = pagebuf.nr_pages; - DPRINTF("batch %d\n",j); + DBGPRINTF("batch %d\n",j); if ( j == 0 ) { /* catch vcpu updates */ diff --git a/tools/libxc/xc_domain_save.c b/tools/libxc/xc_domain_save.c index 425c6b3..398dac4 100644 --- a/tools/libxc/xc_domain_save.c +++ b/tools/libxc/xc_domain_save.c @@ -172,7 +172,7 @@ static inline int outbuf_write(xc_interface *xch, 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 --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index 19de3ba..95c0f7d 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -77,6 +77,7 @@ void xc_report_progress_step(xc_interface *xch, #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 \ -- 1.5.6.5