Received: from eggs.gnu.org ([208.118.235.92]:46760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT9a8-0006be-Hr for qemu-devel@nongnu.org; Fri, 19 Apr 2013 07:34:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UT9a4-0003PD-S2 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 07:34:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT9a4-0003P6-K4 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 07:34:16 -0400 From: Stefan Hajnoczi Date: Fri, 19 Apr 2013 13:33:57 +0200 Message-Id: <1366371241-23430-5-git-send-email-stefanha@redhat.com> In-Reply-To: <1366371241-23430-1-git-send-email-stefanha@redhat.com> References: <1366371241-23430-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 4/8] w64: Fix compiler warnings (wrong format specifier) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Anthony Liguori , Stefan Hajnoczi From: Stefan Weil GetLastError() returns a DWORD value which is unsigned long, so the correct format specifier is %lu. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- cpus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index c15ff6c..5a98a37 100644 --- 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); } -- 1.8.1.4