aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2013-08-23 10:34:16 -0700
committerJuan Quintela <quintela@trasno.org>2013-09-24 13:22:50 +0200
commit5016e2df569bc7d67637060103dd360ed2f0d557 (patch)
tree2b2e15ebeee511559afa919bd29ce0a65d1a7ff1
parent7102400d40be7fcfb017c8f211d6a37ecead2a2f (diff)
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 <christoffer.dall@linaro.org> Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r--migration.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/migration.c b/migration.c
index 200d404547..b4f8462ae4 100644
--- a/migration.c
+++ b/migration.c
@@ -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 {