aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/imx6_src.c
diff options
context:
space:
mode:
authorAlex Chen <alex.chen@huawei.com>2020-11-26 11:11:07 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-12-10 11:44:55 +0000
commit9197c7bddee830d8bc6077581b23450a5b27a460 (patch)
tree8c80a883abe8e99bf7a646d1f91699538c3755de /hw/misc/imx6_src.c
parenta88ae037572f23a54cf865e7a07df2d734288927 (diff)
i.MX6: 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> Message-id: 20201126111109.112238-4-alex.chen@huawei.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc/imx6_src.c')
-rw-r--r--hw/misc/imx6_src.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/imx6_src.c b/hw/misc/imx6_src.c
index dd99cc7acf..79f4375911 100644
--- a/hw/misc/imx6_src.c
+++ b/hw/misc/imx6_src.c
@@ -68,7 +68,7 @@ static const char *imx6_src_reg_name(uint32_t reg)
case SRC_GPR10:
return "SRC_GPR10";
default:
- sprintf(unknown, "%d ?", reg);
+ sprintf(unknown, "%u ?", reg);
return unknown;
}
}