migration: Fix debug print type
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.
Signed-off-by Christoffer Dall <[email protected]>
--- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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);if (pending_size && pending_size >= max_size) {qemu_savevm_state_iterate (s->file); }else {
Signature · 1 line
1.7.10.4
See my comment below.
Am 23.08.2013 09:06, schrieb Christoffer Dall:
Quoted 13 lines
The printf args are
uint64_tand with -Werr QEMU doesn't compile with migration debugging turned on unless this is fixed. Fix it.Signed-off-by Christoffer Dall <[email protected]>--- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)migration.c +0
-0
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
-0if (pending_size && pending_size >= max_size) {qemu_savevm_state_iterate (s->file); }else {