From 42451ed4718af3f93770feb201bd023625d69b3a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 21 Apr 2022 23:25:57 +0300 Subject: fix warnings on 32bit riscv + Will most probably not work on 32bit, but nice to make 'portable' code. --- lib/fdt_dbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/fdt_dbg.c') diff --git a/lib/fdt_dbg.c b/lib/fdt_dbg.c index 296a8de..bf8e2d9 100644 --- a/lib/fdt_dbg.c +++ b/lib/fdt_dbg.c @@ -76,7 +76,7 @@ static void __print_prop_value(const void *data, int len) const int32_t *p = (const int32_t *)data; dbg("<"); for (int i = 0; i < len / 4; ++i) - dbg("%#08x%s", fdt32_to_cpu(p[i]), + dbg("%#08x%s", (unsigned int)fdt32_to_cpu(p[i]), i < (len / 4 - 1) ? " " : ""); dbg(">"); @@ -84,7 +84,7 @@ static void __print_prop_value(const void *data, int len) const int32_t *p = (const int32_t *)data; dbg("["); for (int i = 0; i < len / 4; ++i) - dbg("%#02x%s", fdt32_to_cpu(p[i]), + dbg("%#02x%s", (unsigned int)fdt32_to_cpu(p[i]), i < (len / 4 - 1) ? " " : ""); dbg("]"); -- cgit v1.3