w64: Fix compiler warnings (wrong format specifier)
authorStefan Weil <sw@weilnetz.de>
Sat, 13 Apr 2013 20:45:50 +0000 (22:45 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Apr 2013 09:38:08 +0000 (11:38 +0200)
GetLastError() returns a DWORD value which is unsigned long,
so the correct format specifier is %lu.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
cpus.c

diff --git a/cpus.c b/cpus.c
index c15ff6c5fee824c3c7a28664dfce2820d7915fef..5a98a370df92bebb3f634d00af3c78a42fc3c7c2 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -865,7 +865,7 @@ static void qemu_cpu_kick_thread(CPUState *cpu)
         CONTEXT tcgContext;
 
         if (SuspendThread(cpu->hThread) == (DWORD)-1) {
-            fprintf(stderr, "qemu:%s: GetLastError:%d\n", __func__,
+            fprintf(stderr, "qemu:%s: GetLastError:%lu\n", __func__,
                     GetLastError());
             exit(1);
         }
@@ -881,7 +881,7 @@ static void qemu_cpu_kick_thread(CPUState *cpu)
         cpu_signal(0);
 
         if (ResumeThread(cpu->hThread) == (DWORD)-1) {
-            fprintf(stderr, "qemu:%s: GetLastError:%d\n", __func__,
+            fprintf(stderr, "qemu:%s: GetLastError:%lu\n", __func__,
                     GetLastError());
             exit(1);
         }