* [Qemu-devel] [PATCH] Fix typo when using TARGET_FMT_plx and LSI_DEBUG
@ 2008-11-20 16:10 Ryan Harper
0 siblings, 0 replies; only message in thread
From: Ryan Harper @ 2008-11-20 16:10 UTC (permalink / raw)
To: qemu-devel
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-20 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 16:10 [Qemu-devel] [PATCH] Fix typo when using TARGET_FMT_plx and LSI_DEBUG Ryan Harper
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).