diff mbox

[4/6] Fix compilation with DEBUG_BLK_MIGRATION, and improve debug messages

Message ID 1259261046-32650-5-git-send-email-Pierre.Riteau@irisa.fr
State New
Headers show

Commit Message

Pierre Riteau Nov. 26, 2009, 6:44 p.m. UTC
Signed-off-by: Pierre Riteau <Pierre.Riteau@irisa.fr>
---
 block-migration.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/block-migration.c b/block-migration.c
index 1626168..aff4c20 100644
--- a/block-migration.c
+++ b/block-migration.c
@@ -352,8 +352,9 @@  static void flush_blks(QEMUFile* f)
 {
     BlkMigBlock *blk;
 
-    dprintf("%s Enter submitted %d read_done %d transfered\n", __FUNCTION__,
-            submitted, read_done, transfered);
+    dprintf("Enter %s submitted %d read_done %d transferred %d\n", __FUNCTION__,
+            block_mig_state->submitted, block_mig_state->read_done,
+            block_mig_state->transferred);
 
     while ((blk = QSIMPLEQ_FIRST(&block_mig_state->block_list)) != NULL) {
         send_blk(f, blk);
@@ -370,7 +371,7 @@  static void flush_blks(QEMUFile* f)
         }
     }
 
-    dprintf("%s Exit submitted %d read_done %d transferred%d\n", __FUNCTION__,
+    dprintf("Exit %s submitted %d read_done %d transferred %d\n", __FUNCTION__,
             block_mig_state->submitted, block_mig_state->read_done,
             block_mig_state->transferred);
 
@@ -398,8 +399,9 @@  static int block_save_live(QEMUFile *f, int stage, void *opaque)
 {
     int ret = 1;
 
-    dprintf("Enter save live stage %d submitted %d transferred %d\n", stage,
-            submitted, transferred);
+    dprintf("Enter %s stage %d submitted %d read_done %d transferred %d\n",
+            __FUNCTION__, stage, block_mig_state->submitted,
+            block_mig_state->read_done, block_mig_state->transferred);
 
     if (block_mig_state->blk_enable != 1) {
         /* no need to migrate storage */