From patchwork Sat Apr 13 20:45:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 236391 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EA7422C00AA for ; Sun, 14 Apr 2013 06:46:26 +1000 (EST) Received: from localhost ([::1]:34220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR7L6-00042p-SO for incoming@patchwork.ozlabs.org; Sat, 13 Apr 2013 16:46:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR7Ki-0003wD-Qa for qemu-devel@nongnu.org; Sat, 13 Apr 2013 16:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UR7Kg-0002kM-Fy for qemu-devel@nongnu.org; Sat, 13 Apr 2013 16:46:00 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:44219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR7Kf-0002jy-79; Sat, 13 Apr 2013 16:45:58 -0400 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id 91B757280042; Sat, 13 Apr 2013 22:45:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at weilnetz.de Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZX-7cq4p_1vD; Sat, 13 Apr 2013 22:45:51 +0200 (CEST) Received: by v220110690675601.yourvserver.net (Postfix, from userid 1000) id BE307728004A; Sat, 13 Apr 2013 22:45:51 +0200 (CEST) From: Stefan Weil To: qemu-trivial@nongnu.org Date: Sat, 13 Apr 2013 22:45:50 +0200 Message-Id: <1365885950-27598-1-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.47.199.172 Cc: Stefan Weil , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] w64: Fix compiler warnings (wrong format specifier) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org GetLastError() returns a DWORD value which is unsigned long, so the correct format specifier is %lu. Signed-off-by: Stefan Weil --- Debian's w32 cross compiler does not complain about the wrong specifiers, but the w64 cross compiler does. I'm sorry that I did not notice this before sending the pull request. cpus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 97e9ab4..3f754c6 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); }