[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/2] gt64xxx.c: fix length modifi

From: Peter Maydell
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/2] gt64xxx.c: fix length modifier in DPRINTF format string
Date: Sun, 25 Sep 2011 20:22:47 +0100

On 25 September 2011 19:14, Antony Pavlov <address@hidden> wrote:
> The commit fc2bf44972349b078d8310466c3866615500e67f
> changed the type of val argument of the function gt64120_writel()
> from uint32_t to uint64_t, so we need to change the corresponding
> length modifier from '%x' to '%llx'.

For a uint64_t you need to use PRIx64 -- '%llx' won't work on
systems where uint64_t isn't typedefed as 'long long'.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]