diff options
author | AlexChen <alex.chen@huawei.com> | 2020-11-02 17:55:23 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-11-23 10:41:58 +0000 |
commit | 98554b3b56b3e74e271385afb00855d48ab1fe16 (patch) | |
tree | bbe6a952c97fa2cbdc33ac32ba6d5ca824874c77 /hw/arm/pxa2xx.c | |
parent | 98e8779770c40901ed585745aacc9a8e2b934a28 (diff) | |
download | qemu-98554b3b56b3e74e271385afb00855d48ab1fe16.zip qemu-98554b3b56b3e74e271385afb00855d48ab1fe16.tar.gz qemu-98554b3b56b3e74e271385afb00855d48ab1fe16.tar.bz2 |
hw/arm: Fix bad print format specifiers
We should use printf format specifier "%u" instead of "%i" for
argument of type "unsigned int".
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Message-id: 5F9FD78B.8000300@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/pxa2xx.c')
-rw-r--r-- | hw/arm/pxa2xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c index 591776b..1a98f3b 100644 --- a/hw/arm/pxa2xx.c +++ b/hw/arm/pxa2xx.c @@ -675,7 +675,7 @@ static void pxa2xx_ssp_write(void *opaque, hwaddr addr, if (value & SSCR0_MOD) printf("%s: Attempt to use network mode\n", __func__); if (s->enable && SSCR0_DSS(value) < 4) - printf("%s: Wrong data size: %i bits\n", __func__, + printf("%s: Wrong data size: %u bits\n", __func__, SSCR0_DSS(value)); if (!(value & SSCR0_SSE)) { s->sssr = 0; |