From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSdl5-0000oQ-W4 for qemu-devel@nongnu.org; Thu, 29 Jan 2009 15:45:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSdl2-0000oE-1l for qemu-devel@nongnu.org; Thu, 29 Jan 2009 15:45:07 -0500 Received: from [199.232.76.173] (port=41529 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSdl1-0000oB-Ur for qemu-devel@nongnu.org; Thu, 29 Jan 2009 15:45:03 -0500 Received: from main.gmane.org ([80.91.229.2]:49182 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSdl1-0003RG-Ft for qemu-devel@nongnu.org; Thu, 29 Jan 2009 15:45:03 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LSdkv-000062-3p for qemu-devel@nongnu.org; Thu, 29 Jan 2009 20:44:57 +0000 Received: from 204.147.152.1 ([204.147.152.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 20:44:57 +0000 Received: from void by 204.147.152.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 20:44:57 +0000 From: Consul Date: Thu, 29 Jan 2009 12:44:40 -0800 Message-ID: References: <1987955410-BeMail@laptop> <4981B0C9.8010403@codemonkey.ws> <20090129135523.GA7441@shareable.org> <4981C49E.5070207@codemonkey.ws> <20090129184234.GA13169@shareable.org> <49820879.5080209@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <49820879.5080209@codemonkey.ws> Sender: news Subject: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori wrote: > Okay, I wrote a small program that included inttypes.h. PRIu64 was > defined as I64u. This bug should be fixed in GCC-4.4.0 (and backported to 3.4.2 MinGW's stable) However the latest version ported to MinGW is still 4.3.0. Mind you I64u in the format line still gives the correct result, only this annoying warning is the problem. Other suggested format options silenced the warning, but also truncated the result :( #include #include //#define PRIu64 "I64u" int main() { unsigned __int64 x = 1122334455667788LL; printf("Number: %"PRIu64"\n", x); return 0; }