From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmQJp-0006Cz-Nv for qemu-devel@nongnu.org; Wed, 04 Jul 2012 10:12:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmQJo-0002Sk-8l for qemu-devel@nongnu.org; Wed, 04 Jul 2012 10:12:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:47053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmQJo-0002Se-1m for qemu-devel@nongnu.org; Wed, 04 Jul 2012 10:12:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SmQJl-0002FM-S2 for qemu-devel@nongnu.org; Wed, 04 Jul 2012 16:12:33 +0200 Received: from 213.33.220.118 ([213.33.220.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jul 2012 16:12:33 +0200 Received: from m.kozlov by 213.33.220.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jul 2012 16:12:33 +0200 From: Maksim Kozlov Date: Wed, 04 Jul 2012 18:12:23 +0400 Message-ID: <4FF44F47.2020106@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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit In-Reply-To: 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: qemu-devel@nongnu.org Cc: kyungmin.park@samsung.com, Dunrong Huang 04.07.2012 17:54, Peter Maydell пишет: > On 4 July 2012 14:45, Maksim Kozlov wrote: >> 04.07.2012 14:38, Dunrong Huang пишет: >>>> + 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.) Hmm... Thanks for explanation > > -- PMM > >