All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ray Wang <raywang@linux.vnet.ibm.com>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] gt64xxx.c: fix length modifier in DPRINTF format string
Date: Wed, 28 Sep 2011 12:40:48 +0800	[thread overview]
Message-ID: <4E82A550.5010400@linux.vnet.ibm.com> (raw)
In-Reply-To: <1317013358-19839-1-git-send-email-antonynpavlov@gmail.com>

Tested-by: Ray Wang <xianleiw@cn.ibm.com>

On 9/26/2011 1:02 PM, Antony Pavlov 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 "%" PRIx64.
>
> Signed-off-by: Antony Pavlov<antonynpavlov@gmail.com>
> ---
>   hw/gt64xxx.c |    8 ++++----
>   1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c
> index c7df8c4..1defb6d 100644
> --- a/hw/gt64xxx.c
> +++ b/hw/gt64xxx.c
> @@ -543,19 +543,19 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr,
>           /* not really implemented */
>           s->regs[saddr] = ~(~(s->regs[saddr]) | ~(val&  0xfffffffe));
>           s->regs[saddr] |= !!(s->regs[saddr]&  0xfffffffe);
> -        DPRINTF("INTRCAUSE %x\n", val);
> +        DPRINTF("INTRCAUSE %" PRIx64 "\n", val);
>           break;
>       case GT_INTRMASK:
>           s->regs[saddr] = val&  0x3c3ffffe;
> -        DPRINTF("INTRMASK %x\n", val);
> +        DPRINTF("INTRMASK %" PRIx64 "\n", val);
>           break;
>       case GT_PCI0_ICMASK:
>           s->regs[saddr] = val&  0x03fffffe;
> -        DPRINTF("ICMASK %x\n", val);
> +        DPRINTF("ICMASK %" PRIx64 "\n", val);
>           break;
>       case GT_PCI0_SERR0MASK:
>           s->regs[saddr] = val&  0x0000003f;
> -        DPRINTF("SERR0MASK %x\n", val);
> +        DPRINTF("SERR0MASK %" PRIx64 "\n", val);
>           break;
>
>       /* Reserved when only PCI_0 is configured. */
It's good.

-- 
Best Regards,
-------------------------------------------------
Ray Wang
Linux Technology Center, KVM China
IBM Corp., Beijing, China
xianleiw@cn.ibm.com

  parent reply	other threads:[~2011-09-28  4:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-26  5:02 [Qemu-trivial] [PATCH 1/2] gt64xxx.c: fix length modifier in DPRINTF format string Antony Pavlov
2011-09-26  5:02 ` [Qemu-devel] " Antony Pavlov
2011-09-26  5:02 ` [Qemu-trivial] [PATCH 2/2] gt64xxx.c: remove reference to non-existing ISD_handle field Antony Pavlov
2011-09-26  5:02   ` [Qemu-devel] " Antony Pavlov
2011-09-26 10:42 ` [Qemu-trivial] [PATCH 1/2] gt64xxx.c: fix length modifier in DPRINTF format string Stefan Hajnoczi
2011-09-26 10:42   ` [Qemu-devel] " Stefan Hajnoczi
2011-09-28  4:40 ` Ray Wang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-09-25 20:02 [Qemu-devel] " Antony Pavlov
2011-09-25 20:56 ` Peter Maydell
2011-09-26  5:02   ` Antony Pavlov
2011-09-25 18:14 Antony Pavlov
2011-09-25 19:22 ` Peter Maydell
2011-09-25 20:02   ` Antony Pavlov

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=4E82A550.5010400@linux.vnet.ibm.com \
    --to=raywang@linux.vnet.ibm.com \
    --cc=antonynpavlov@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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.