[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] misc/omap_sdrc: Fix bad printf format specifiers
From: |
Alex Chen |
Subject: |
[PATCH 5/5] misc/omap_sdrc: Fix bad printf format specifiers |
Date: |
Thu, 26 Nov 2020 11:11:09 +0000 |
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>
---
hw/misc/omap_sdrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/misc/omap_sdrc.c b/hw/misc/omap_sdrc.c
index f2f72f6810..c142fe0882 100644
--- a/hw/misc/omap_sdrc.c
+++ b/hw/misc/omap_sdrc.c
@@ -107,7 +107,7 @@ static void omap_sdrc_write(void *opaque, hwaddr addr,
case 0x10: /* SDRC_SYSCONFIG */
if ((value >> 3) != 0x2)
- fprintf(stderr, "%s: bad SDRAM idle mode %i\n",
+ fprintf(stderr, "%s: bad SDRAM idle mode %u\n",
__func__, (unsigned)value >> 3);
if (value & 2)
omap_sdrc_reset(s);
--
2.19.1
- [PATCH 0/5] hw/misc: Fix some bad printf format specifiers, Alex Chen, 2020/11/26
- [PATCH 2/5] i.MX31: Fix bad printf format specifiers, Alex Chen, 2020/11/26
- [PATCH 3/5] i.MX6: Fix bad printf format specifiers, Alex Chen, 2020/11/26
- [PATCH 1/5] i.MX25: Fix bad printf format specifiers, Alex Chen, 2020/11/26
- [PATCH 5/5] misc/omap_sdrc: Fix bad printf format specifiers,
Alex Chen <=
- [PATCH 4/5] i.MX6ul: Fix bad printf format specifiers, Alex Chen, 2020/11/26
- Re: [PATCH 0/5] hw/misc: Fix some bad printf format specifiers, Peter Maydell, 2020/11/30