Fix typo when using TARGET_FMT_plx and LSI_DEBUG
PATCH 1/1 Fix typo when using TARGET_FMT_plx and LSI_DEBUG
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
Signature · 19 lines
Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx [email protected] 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 <[email protected]>
hw/lsi53c895a.c +1 -1
@@ -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;