summaryrefslogtreecommitdiffstats
path: root/hw/ssi/xilinx_spi.c
diff options
context:
space:
mode:
authorAlexChen2020-11-04 11:22:45 +0100
committerPeter Maydell2020-11-10 12:03:47 +0100
commit9df0a97298292f1638d4de9258ff1fc9092b7813 (patch)
tree06879abffb3dd445de635368755c5af700c2bc56 /hw/ssi/xilinx_spi.c
parenthw/arm/Kconfig: ARM_V7M depends on PTIMER (diff)
downloadqemu-9df0a97298292f1638d4de9258ff1fc9092b7813.tar.gz
qemu-9df0a97298292f1638d4de9258ff1fc9092b7813.tar.xz
qemu-9df0a97298292f1638d4de9258ff1fc9092b7813.zip
ssi: Fix bad printf format specifiers
We should use printf format specifier "%u" instead of "%d" for argument of type "unsigned int". Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Alex Chen <alex.chen@huawei.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 5FA280F5.8060902@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ssi/xilinx_spi.c')
-rw-r--r--hw/ssi/xilinx_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c
index fec8817d94..49ff275593 100644
--- a/hw/ssi/xilinx_spi.c
+++ b/hw/ssi/xilinx_spi.c
@@ -142,7 +142,7 @@ static void xlx_spi_update_irq(XilinxSPI *s)
irq chain unless things really changed. */
if (pending != s->irqline) {
s->irqline = pending;
- DB_PRINT("irq_change of state %d ISR:%x IER:%X\n",
+ DB_PRINT("irq_change of state %u ISR:%x IER:%X\n",
pending, s->regs[R_IPISR], s->regs[R_IPIER]);
qemu_set_irq(s->irq, pending);
}