Skip to contentSkip to conversation

migration: Fix debug print type

PATCH Superseded Christoffer Dall 2 participants 2 messages Aug 23, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 migration.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +1 -1
index 1402fa7..0d8706f 100644
@@ -566,7 +566,7 @@ 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 %llu max %llu\n", pending_size, max_size);
             if (pending_size && pending_size >= max_size) {
                 qemu_savevm_state_iterate(s->file);
             } else {
Signature · 1 line
1.7.10.4
#1 lore raw

See my comment below.

Am 23.08.2013 09:06, schrieb Christoffer Dall:

Quoted 13 lines

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

---
 migration.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +0 -0
index 1402fa7..0d8706f 100644

migration.c static void *migration_thread(void *opaque) · line 569

Quoted 5 lines
migration.c +1 -1
@@ -566,7 +566,7 @@ 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 %llu max %llu\n", pending_size, max_size);

Please use PRIu64 for uint64_t.

Quoted 3 lines
migration.c +0 -0
             if (pending_size && pending_size >= max_size) {
                 qemu_savevm_state_iterate(s->file);
             } else {