From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v1 1/4] m25p80: Fix debug messages.
Date: Wed, 3 Apr 2013 08:50:56 +0200 [thread overview]
Message-ID: <20130403065056.GD21321@smtp.vpn> (raw)
In-Reply-To: <ef1ea44a6c6f5d9846c3492006094044bbd805c3.1364961975.git.peter.crosthwaite@xilinx.com>
On Wed, Apr 03, 2013 at 02:09:16PM +1000, Peter Crosthwaite wrote:
> Some dodgy casts were making a mess of these msgs.
Hi Peter
>
> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> ---
>
> hw/m25p80.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/hw/m25p80.c b/hw/m25p80.c
> index 55e9d0d..34b476b 100644
> --- a/hw/m25p80.c
> +++ b/hw/m25p80.c
> @@ -538,15 +538,15 @@ static uint32_t m25p80_transfer8(SSISlave *ss, uint32_t tx)
> switch (s->state) {
>
> case STATE_PAGE_PROGRAM:
> - DB_PRINT("page program cur_addr=%lx data=%x\n", s->cur_addr,
> - (uint8_t)tx);
> + DB_PRINT("page program cur_addr=%lx data=%x\n", (unsigned)s->cur_addr,
Shouldn't this be using PRIx64 for cur_addr?
> + (unsigned)(uint8_t)tx);
> flash_write8(s, s->cur_addr, (uint8_t)tx);
> s->cur_addr++;
> break;
>
> case STATE_READ:
> r = s->storage[s->cur_addr];
> - DB_PRINT("READ 0x%lx=%x\n", s->cur_addr, r);
> + DB_PRINT("READ 0x%lx=%x\n", (unsigned)s->cur_addr, (unsigned)r);
same here.
> s->cur_addr = (s->cur_addr + 1) % s->size;
> break;
>
> --
> 1.7.0.4
>
>
next prev parent reply other threads:[~2013-04-03 6:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 4:09 [Qemu-devel] [PATCH v1 0/4] m25p80: Fix debug printfery Peter Crosthwaite
2013-04-03 4:09 ` [Qemu-devel] [PATCH v1 1/4] m25p80: Fix debug messages Peter Crosthwaite
2013-04-03 6:50 ` Edgar E. Iglesias [this message]
2013-04-07 5:52 ` Peter Crosthwaite
2013-04-03 4:09 ` [Qemu-devel] [PATCH v1 2/4] m25p80: Convert guest errors to LOG_GUEST_ERROR Peter Crosthwaite
2013-04-03 4:09 ` [Qemu-devel] [PATCH v1 3/4] m25p80.c: Multiple debug verbosity levels Peter Crosthwaite
2013-04-03 4:09 ` [Qemu-devel] [PATCH v1 4/4] m25p80: Add debug message for no bdrv Peter Crosthwaite
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=20130403065056.GD21321@smtp.vpn \
--to=edgar.iglesias@gmail.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).