From: Maksim Kozlov <m.kozlov@samsung.com>
To: qemu-devel@nongnu.org
Cc: kyungmin.park@samsung.com, Dunrong Huang <riegamaths@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v3 1/2] ARM: exynos4210: CMU support
Date: Wed, 04 Jul 2012 18:12:23 +0400 [thread overview]
Message-ID: <4FF44F47.2020106@samsung.com> (raw)
In-Reply-To: <CAFEAcA_CU3j4jEW4vn0LJY_n5CHK8=nNbexOkWHVukMmumv5Dw@mail.gmail.com>
04.07.2012 17:54, Peter Maydell пишет:
> On 4 July 2012 14:45, Maksim Kozlov<m.kozlov@samsung.com> 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
>
>
next prev parent reply other threads:[~2012-07-04 14:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 9:21 [Qemu-devel] [PATCH v3 0/2] ARM: Samsung Exynos4210 CMU support Maksim Kozlov
2012-07-04 9:22 ` [Qemu-devel] [PATCH v3 1/2] ARM: exynos4210: " Maksim Kozlov
2012-07-04 10:38 ` Dunrong Huang
2012-07-04 13:45 ` Maksim Kozlov
2012-07-04 13:54 ` Peter Maydell
2012-07-04 14:12 ` Maksim Kozlov [this message]
2012-07-04 14:14 ` Dunrong Huang
2012-07-04 14:53 ` Maksim Kozlov
2012-07-04 9:22 ` [Qemu-devel] [PATCH v3 2/2] exynos4210: UART: Added using of CMU-callback functionality Maksim Kozlov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FF44F47.2020106@samsung.com \
--to=m.kozlov@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=qemu-devel@nongnu.org \
--cc=riegamaths@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.