From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmQ24-0002JJ-Fa for qemu-devel@nongnu.org; Wed, 04 Jul 2012 09:54:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmQ1y-0005OE-2i for qemu-devel@nongnu.org; Wed, 04 Jul 2012 09:54:16 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:52634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmQ1x-0005O2-Rf for qemu-devel@nongnu.org; Wed, 04 Jul 2012 09:54:09 -0400 Received: by bkty12 with SMTP id y12so2784121bkt.4 for ; Wed, 04 Jul 2012 06:54:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4FF448F0.4050809@samsung.com> References: <1341393721-3606-1-git-send-email-m.kozlov@samsung.com> <1341393721-3606-2-git-send-email-m.kozlov@samsung.com> <4FF448F0.4050809@samsung.com> Date: Wed, 4 Jul 2012 14:54:07 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 1/2] ARM: exynos4210: CMU support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Maksim Kozlov Cc: kyungmin.park@samsung.com, qemu-devel@nongnu.org, Dunrong Huang On 4 July 2012 14:45, Maksim Kozlov wrote: > 04.07.2012 14:38, Dunrong Huang =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> + PRINT_DEBUG("%s rate: %llu\n", pll->name, pll->rate); >> >> pll->rate is of type uint64_t incompatible with "%llu" > > > Type uint64_t is included from /usr/include/stdint.h as > > typedef unsigned long long int uint64_t; On a 64 bit system this typedef is: typedef unsigned long int uint64_t; > and 'll' specifies that a following 'u' conversion specifier > applies to a unsigned long long argument ...and the compiler will complain about using 'll' with it, as you can confirm if you try to build on a 64 bit box with debug enabled. This is why the PRI* POSIX macros exist. You need to use PRINT_DEBUG("%s rate: %" PRIu64 "\n", pll->name, pll->rate); (watch the quotes there.) -- PMM