From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HI6z4-0005n8-6L for qemu-devel@nongnu.org; Fri, 16 Feb 2007 12:34:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HI6z2-0005mA-8p for qemu-devel@nongnu.org; Fri, 16 Feb 2007 12:34:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HI6z2-0005m3-57 for qemu-devel@nongnu.org; Fri, 16 Feb 2007 12:34:56 -0500 Received: from static-71-162-243-5.phlapa.fios.verizon.net ([71.162.243.5] helo=grelber.thyrsus.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HI6z1-0004zc-QU for qemu-devel@nongnu.org; Fri, 16 Feb 2007 12:34:55 -0500 From: Rob Landley Subject: Re: [Qemu-devel] Fix 64 bit number formatting on Windows Date: Fri, 16 Feb 2007 12:34:53 -0500 References: <20070213214623.613E4279D1@smtp5-g19.free.fr> In-Reply-To: <20070213214623.613E4279D1@smtp5-g19.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Message-Id: <200702161234.53535.rob@landley.net> Content-Transfer-Encoding: quoted-printable 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 Cc: =?iso-8859-15?q?Herv=E9_Poussineau?= On Tuesday 13 February 2007 4:44 pm, Herv=E9 Poussineau wrote: > Hi, >=20 > Correct number formatting on Windows for 64 bit numbers is "I64", while= it > is "ll" on *nix. Might I introduce you to the c99 PRIu64 macro (and friends)? uint64_t bytes=3D1234; printf("%"PRIu64" bytes\n", bytes); Rob --=20 "Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away." - Antoine de Saint-Exuper= y