public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Silence warnings in migration.c
@ 2008-05-15 13:04 Jan Kiszka
  2008-05-19 10:19 ` [kvm-devel] " Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-05-15 13:04 UTC (permalink / raw)
  To: kvm-devel

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

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 qemu/migration.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: b/qemu/migration.c
===================================================================
--- a/qemu/migration.c
+++ 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [kvm-devel] [PATCH] Silence warnings in migration.c
  2008-05-15 13:04 [PATCH] Silence warnings in migration.c Jan Kiszka
@ 2008-05-19 10:19 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-05-19 10:19 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: kvm-devel

Jan Kiszka wrote:
> These warnings continued to bug me (while scanning for my own mess).
>
>   
Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-19 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 13:04 [PATCH] Silence warnings in migration.c Jan Kiszka
2008-05-19 10:19 ` [kvm-devel] " Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox