From: Andrew Jones <drjones@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: edgar.iglesias@gmail.com, alistair.francis@xilinx.com,
qemu-devel@nongnu.org, crosthwaite.peter@gmail.com
Subject: Re: [Qemu-devel] [PATCH] hw/dma/xilinx_axidma: debug printf fixups
Date: Tue, 5 Jan 2016 16:32:04 +0100 [thread overview]
Message-ID: <20160105153204.GC4208@hawk.localdomain> (raw)
In-Reply-To: <568BCE1A.8090007@redhat.com>
On Tue, Jan 05, 2016 at 07:07:22AM -0700, Eric Blake wrote:
> On 01/05/2016 06:22 AM, Andrew Jones wrote:
> > (Found by grepping for broken PRI users.)
> >
> > Signed-off-by: Andrew Jones <drjones@redhat.com>
> > ---
> > hw/dma/xilinx_axidma.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c
> > index b1cfa11356a26..2ab0772cd19ae 100644
> > --- a/hw/dma/xilinx_axidma.c
> > +++ b/hw/dma/xilinx_axidma.c
> > @@ -180,10 +180,10 @@ static inline int streamid_from_addr(hwaddr addr)
> > #ifdef DEBUG_ENET
> > static void stream_desc_show(struct SDesc *d)
> > {
> > - qemu_log("buffer_addr = " PRIx64 "\n", d->buffer_address);
> > - qemu_log("nxtdesc = " PRIx64 "\n", d->nxtdesc);
> > - qemu_log("control = %x\n", d->control);
> > - qemu_log("status = %x\n", d->status);
> > + qemu_log("buffer_addr = 0x%" PRIx64 "\n", d->buffer_address);
> > + qemu_log("nxtdesc = 0x%" PRIx64 "\n", d->nxtdesc);
> > + qemu_log("control = 0x%x\n", d->control);
> > + qemu_log("status = 0x%x\n", d->status);
>
> This is dead code. Nothing uses stream_desc_show() even when DEBUG_ENET
> is defined. I'd just delete the function and #ifdef altogether, instead.
Sounds good, but I guess I'll leave the keep+fix vs. throw decision to the
maintainers, rather than to submit a v2 ripping it out.
Thanks,
drew
>
> --
> Eric Blake eblake redhat com +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
next prev parent reply other threads:[~2016-01-05 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 13:22 [Qemu-devel] [PATCH] hw/dma/xilinx_axidma: debug printf fixups Andrew Jones
2016-01-05 14:07 ` Eric Blake
2016-01-05 15:32 ` Andrew Jones [this message]
2016-01-06 1:45 ` Alistair Francis
2016-01-06 12:51 ` Andrew Jones
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=20160105153204.GC4208@hawk.localdomain \
--to=drjones@redhat.com \
--cc=alistair.francis@xilinx.com \
--cc=crosthwaite.peter@gmail.com \
--cc=eblake@redhat.com \
--cc=edgar.iglesias@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.