From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFDUw-0005Ks-LY for qemu-devel@nongnu.org; Mon, 11 Mar 2013 20:55:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFDUs-0000Z5-MX for qemu-devel@nongnu.org; Mon, 11 Mar 2013 20:55:22 -0400 Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:55785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFDUs-0000Z0-HO for qemu-devel@nongnu.org; Mon, 11 Mar 2013 20:55:18 -0400 Received: by mail-ob0-f171.google.com with SMTP id x4so3973349obh.30 for ; Mon, 11 Mar 2013 17:55:17 -0700 (PDT) Sender: fluxion From: Michael Roth Date: Mon, 11 Mar 2013 19:53:12 -0500 Message-Id: <1363049600-29456-2-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1363049600-29456-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1363049600-29456-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 1/9] qga: cast to int for DWORD type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, lersek@redhat.com, lilei@linux.vnet.ibm.com, stefanha@redhat.com From: Lei Li This patch fixes a compiler warning when cross-build: qga/service-win32.c: In function 'printf_win_error': qga/service-win32.c:32:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'DWORD' [-Wformat] Signed-off-by: Lei Li Signed-off-by: Michael Roth --- qga/service-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/service-win32.c b/qga/service-win32.c index 0905456..843398a 100644 --- a/qga/service-win32.c +++ b/qga/service-win32.c @@ -29,7 +29,7 @@ static int printf_win_error(const char *text) MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (char *)&message, 0, NULL); - n = printf("%s. (Error: %d) %s", text, err, message); + n = printf("%s. (Error: %d) %s", text, (int)err, message); LocalFree(message); return n; -- 1.7.9.5