summary refs log tree commit diff stats
path: root/hw/arm/spitz.c
diff options
context:
space:
mode:
authorAlexChen <alex.chen@huawei.com>2020-11-02 17:55:23 +0800
committerPeter Maydell <peter.maydell@linaro.org>2020-11-23 10:41:58 +0000
commit98554b3b56b3e74e271385afb00855d48ab1fe16 (patch)
treebbe6a952c97fa2cbdc33ac32ba6d5ca824874c77 /hw/arm/spitz.c
parent98e8779770c40901ed585745aacc9a8e2b934a28 (diff)
downloadfocaccia-qemu-98554b3b56b3e74e271385afb00855d48ab1fe16.tar.gz
focaccia-qemu-98554b3b56b3e74e271385afb00855d48ab1fe16.zip
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/spitz.c')
-rw-r--r--hw/arm/spitz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c
index 32bdeacfd3..772662f149 100644
--- a/hw/arm/spitz.c
+++ b/hw/arm/spitz.c
@@ -586,7 +586,7 @@ struct SpitzLCDTG {
 static void spitz_bl_update(SpitzLCDTG *s)
 {
     if (s->bl_power && s->bl_intensity)
-        zaurus_printf("LCD Backlight now at %i/63\n", s->bl_intensity);
+        zaurus_printf("LCD Backlight now at %u/63\n", s->bl_intensity);
     else
         zaurus_printf("LCD Backlight now off\n");
 }