OSDN Git Service

migration: Fix debug print type
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 23 Aug 2013 17:34:16 +0000 (10:34 -0700)
committerJuan Quintela <quintela@trasno.org>
Tue, 24 Sep 2013 11:22:50 +0000 (13:22 +0200)
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>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration.c

index 200d404..b4f8462 100644 (file)
@@ -567,7 +567,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 {