Subject: [PATCH 38/46] migration: Fix debug print type

From: Nigel Croxon <[email-masked]>
Date: Thu, 14 Nov 2013 22:53:14 +0100

RH-Author: Nigel Croxon <[email-masked]>
Message-id: <[email-masked]>
Patchwork-id: 55724
O-Subject: [RHEL7.0 PATCH 38/42] migration: Fix debug print type
Bugzilla: 1011720
RH-Acked-by: Orit Wasserman <[email-masked]>
RH-Acked-by: Amit Shah <[email-masked]>
RH-Acked-by: Paolo Bonzini <[email-masked]>

Bugzilla: 1011720
https://bugzilla.redhat.com/show_bug.cgi?id=1011720

>From commit ID:
commit 5016e2df569bc7d67637060103dd360ed2f0d557
Author: Christoffer Dall <[email-masked]>
Date:   Fri Aug 23 10:34:16 2013 -0700

    migration: Fix debug print type

    The printf args are uint64_t and with -Werr QEMU doesn't compile with
    migration debugging turned on unless this is fixed.  Fix it.

    Signed-off-by: Christoffer Dall <[email-masked]>
    Signed-off-by: Juan Quintela <[email-masked]>
---
 migration.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Signed-off-by: Michal Novotny <[email-masked]>
---
 migration.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/migration.c b/migration.c
index 4f070a3..c0202b4 100644
--- a/migration.c
+++ b/migration.c
@@ -574,7 +574,8 @@ static void *migration_thread(void *opaque)
         if (!qemu_file_rate_limit(s->file)) {
             DPRINTF("iterate\n");
             pending_size = qemu_savevm_state_pending(s->file, max_size);
-            DPRINTF("pending size %lu max %lu\n", pending_size, max_size);
+            DPRINTF("pending size %" PRIu64 " max %" PRIu64 "\n",
+                    pending_size, max_size);
             if (pending_size && pending_size >= max_size) {
                 qemu_savevm_state_iterate(s->file);
             } else {
-- 
1.7.11.7