diff mbox

[v2] migration: Fix debug print type

Message ID 1377279256-4303-1-git-send-email-christoffer.dall@linaro.org
State Accepted
Commit 5016e2df569bc7d67637060103dd360ed2f0d557
Headers show

Commit Message

Christoffer Dall Aug. 23, 2013, 5:34 p.m. UTC
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 <christoffer.dall@linaro.org>
---

[Changelog v1 -> v2]:
  - Use PRIu64 instead of %llu

 migration.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Juan Quintela Sept. 24, 2013, 8:26 a.m. UTC | #1
Christoffer Dall <christoffer.dall@linaro.org> wrote:
> 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 <christoffer.dall@linaro.org>

Reviewed-by: Juan Quintela <quintela@redhat.com>
diff mbox

Patch

diff --git a/migration.c b/migration.c
index 1402fa7..e9b83f6 100644
--- a/migration.c
+++ b/migration.c
@@ -566,7 +566,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 {