diff options
author | AlexChen <alex.chen@huawei.com> | 2020-11-04 18:22:45 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-11-10 11:03:47 +0000 |
commit | 9df0a97298292f1638d4de9258ff1fc9092b7813 (patch) | |
tree | 06879abffb3dd445de635368755c5af700c2bc56 /hw/ssi/imx_spi.c | |
parent | 9ad5f6b05f181b36bc368e2bf60b1548d2937667 (diff) | |
download | qemu-9df0a97298292f1638d4de9258ff1fc9092b7813.zip qemu-9df0a97298292f1638d4de9258ff1fc9092b7813.tar.gz qemu-9df0a97298292f1638d4de9258ff1fc9092b7813.tar.bz2 |
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/imx_spi.c')
-rw-r--r-- | hw/ssi/imx_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/imx_spi.c b/hw/ssi/imx_spi.c index 7f703d8..d8885ae 100644 --- a/hw/ssi/imx_spi.c +++ b/hw/ssi/imx_spi.c @@ -53,7 +53,7 @@ static const char *imx_spi_reg_name(uint32_t reg) case ECSPI_MSGDATA: return "ECSPI_MSGDATA"; default: - sprintf(unknown, "%d ?", reg); + sprintf(unknown, "%u ?", reg); return unknown; } } |