0a122b
From 69e9d2cbd41bf6884d2259675cd58b891c6df2de Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <69e9d2cbd41bf6884d2259675cd58b891c6df2de.1387382496.git.minovotn@redhat.com>
0a122b
In-Reply-To: <c5386144fbf09f628148101bc674e2421cdd16e3.1387382496.git.minovotn@redhat.com>
0a122b
References: <c5386144fbf09f628148101bc674e2421cdd16e3.1387382496.git.minovotn@redhat.com>
0a122b
From: Nigel Croxon <ncroxon@redhat.com>
0a122b
Date: Thu, 14 Nov 2013 22:53:14 +0100
0a122b
Subject: [PATCH 38/46] migration: Fix debug print type
0a122b
0a122b
RH-Author: Nigel Croxon <ncroxon@redhat.com>
0a122b
Message-id: <1384469598-13137-39-git-send-email-ncroxon@redhat.com>
0a122b
Patchwork-id: 55724
0a122b
O-Subject: [RHEL7.0 PATCH 38/42] migration: Fix debug print type
0a122b
Bugzilla: 1011720
0a122b
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
0a122b
RH-Acked-by: Amit Shah <amit.shah@redhat.com>
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
0a122b
Bugzilla: 1011720
0a122b
https://bugzilla.redhat.com/show_bug.cgi?id=1011720
0a122b
0a122b
>From commit ID:
0a122b
commit 5016e2df569bc7d67637060103dd360ed2f0d557
0a122b
Author: Christoffer Dall <christoffer.dall@linaro.org>
0a122b
Date:   Fri Aug 23 10:34:16 2013 -0700
0a122b
0a122b
    migration: Fix debug print type
0a122b
0a122b
    The printf args are uint64_t and with -Werr QEMU doesn't compile with
0a122b
    migration debugging turned on unless this is fixed.  Fix it.
0a122b
0a122b
    Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
0a122b
    Signed-off-by: Juan Quintela <quintela@redhat.com>
0a122b
---
0a122b
 migration.c |    3 ++-
0a122b
 1 files changed, 2 insertions(+), 1 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 migration.c | 3 ++-
0a122b
 1 file changed, 2 insertions(+), 1 deletion(-)
0a122b
0a122b
diff --git a/migration.c b/migration.c
0a122b
index 4f070a3..c0202b4 100644
0a122b
--- a/migration.c
0a122b
+++ b/migration.c
0a122b
@@ -574,7 +574,8 @@ static void *migration_thread(void *opaque)
0a122b
         if (!qemu_file_rate_limit(s->file)) {
0a122b
             DPRINTF("iterate\n");
0a122b
             pending_size = qemu_savevm_state_pending(s->file, max_size);
0a122b
-            DPRINTF("pending size %lu max %lu\n", pending_size, max_size);
0a122b
+            DPRINTF("pending size %" PRIu64 " max %" PRIu64 "\n",
0a122b
+                    pending_size, max_size);
0a122b
             if (pending_size && pending_size >= max_size) {
0a122b
                 qemu_savevm_state_iterate(s->file);
0a122b
             } else {
0a122b
-- 
0a122b
1.7.11.7
0a122b