From: Ryan Harper <ryanh@us.ibm.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix typo when using TARGET_FMT_plx and LSI_DEBUG
Date: Thu, 20 Nov 2008 10:10:39 -0600 [thread overview]
Message-ID: <20081120161039.GC31893@us.ibm.com> (raw)
TARGET_FMT_plx includes a % for you. This fixes the following warning when
compiling with LSI_DEBUG enabled.
qemu/hw/lsi53c895a.c: In function `lsi_do_dma':
qemu/hw/lsi53c895a.c:485: warning: int format, different type arg (arg 2)
qemu/hw/lsi53c895a.c:485: warning: too many arguments for format
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com
diffstat output:
lsi53c895a.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
---
TARGET_FMT_plx includes a % for you. This fixes the following warning when
compiling with LSI_DEBUG enabled.
qemu/hw/lsi53c895a.c: In function `lsi_do_dma':
qemu/hw/lsi53c895a.c:485: warning: int format, different type arg (arg 2)
qemu/hw/lsi53c895a.c:485: warning: too many arguments for format
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index b372e10..8f8ffd7 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -482,7 +482,7 @@ static void lsi_do_dma(LSIState *s, int out)
else if (s->sbms)
addr |= ((uint64_t)s->sbms << 32);
- DPRINTF("DMA addr=0x%" TARGET_FMT_plx " len=%d\n", addr, count);
+ DPRINTF("DMA addr=0x" TARGET_FMT_plx " len=%d\n", addr, count);
s->csbc += count;
s->dnad += count;
s->dbc -= count;
reply other threads:[~2008-11-20 16:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20081120161039.GC31893@us.ibm.com \
--to=ryanh@us.ibm.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 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).