Skip to contentSkip to conversation

Silence warnings in migration.c

PATCH Applied Jan Kiszka 2 participants 2 messages May 15, 2008 – May 19, 2008 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Silence warnings in migration.c

These warnings continued to bug me (while scanning for my own mess).

---
 qemu/migration.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
qemu/migration.c +4 -3
Index: b/qemu/migration.c
===================================================================
@@ -834,8 +834,8 @@ static int migrate_incoming_fd(int fd)
 
     size = qemu_get_be32(f);
     if (size != phys_ram_size) {
-        fprintf(stderr, "migration: memory size mismatch: recv %u mine %u\n",
-                size, phys_ram_size);
+        fprintf(stderr, "migration: memory size mismatch: recv %u mine %llu\n",
+                size, (unsigned long long)phys_ram_size);
 	return MIG_STAT_DST_MEM_SIZE_MISMATCH;
     }
 
@@ -1090,7 +1090,8 @@ void do_info_migration(void)
 	    term_printf("Transfer rate %3.1f mb/s\n",
 			(double)s->bps / (1024 * 1024));
 	term_printf("Iteration %d\n", s->iteration);
-	term_printf("Transferred %d/%d pages\n", s->updated_pages, phys_ram_size >> TARGET_PAGE_BITS);
+	term_printf("Transferred %d/%llu pages\n", s->updated_pages,
+		    (unsigned long long)phys_ram_size >> TARGET_PAGE_BITS);
 	if (s->iteration)
 	    term_printf("Last iteration found %d dirty pages\n", s->last_updated_pages);
     } else {

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

These warnings continued to bug me (while scanning for my own mess).

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function