]> xenbits.xensource.com Git - xen.git/commitdiff
libxc: Use new DBGPRINTF for a few debugging output messages
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 08:31:09 +0000 (09:31 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 08:31:09 +0000 (09:31 +0100)
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@eu.citrix.com>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
tools/libxc/xc_private.h

index 34a175c761fc9aa1651d986563c905c9638de72e..508cebd7f5cf7f2c1daf754bfa8623ba5b54cf72 100644 (file)
@@ -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 */
index 425c6b3d3220d31d1493177676d10726e905c4da..398dac4288281ad9ff273cc128a290b33c6807f2 100644 (file)
@@ -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;
     }
 
index 19de3ba436f7627e779aef6865c1abd442544a96..95c0f7d49345aadd8485c60dc944356389d1d803 100644 (file)
@@ -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 \