WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxc: Use new DBGPRINTF for a few debugg

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxc: Use new DBGPRINTF for a few debugging output messages
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 29 May 2010 00:31:06 -0700
Delivery-date: Sat, 29 May 2010 00:35:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxc: Use new DBGPRINTF for a few debugging output messages, Xen patchbot-unstable <=