summaryrefslogtreecommitdiff
path: root/fdtdump.c
diff options
context:
space:
mode:
authornixiaoming <nixiaoming@huawei.com>2018-05-24 10:50:18 +0800
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-07 11:49:17 +1000
commitb9af3b39657681e2d76b7a22f6736e8c3d64e392 (patch)
treea1f3d3aadd182fe05406e17651cd79b2cbd5dc61 /fdtdump.c
parent4b8fcc3d015c6b70c74997fb735614c2ef9e6610 (diff)
downloaddevice-tree-compiler-b9af3b39657681e2d76b7a22f6736e8c3d64e392.tar.gz
scripts/dtc: Fixed format mismatch in fprintf
format specifier "d" need arg type "int" , but the according arg "fdt32_to_cpu(xxx)" has type "unsigned int" Signed-off-by: nixiaoming <nixiaoming@huawei.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'fdtdump.c')
-rw-r--r--fdtdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fdtdump.c b/fdtdump.c
index 98aa076..b506672 100644
--- a/fdtdump.c
+++ b/fdtdump.c
@@ -66,12 +66,12 @@ static void dump_blob(void *blob, bool debug)
printf("/dts-v1/;\n");
printf("// magic:\t\t0x%x\n", fdt32_to_cpu(bph->magic));
- printf("// totalsize:\t\t0x%x (%d)\n", totalsize, totalsize);
+ printf("// totalsize:\t\t0x%x (%u)\n", totalsize, totalsize);
printf("// off_dt_struct:\t0x%x\n", off_dt);
printf("// off_dt_strings:\t0x%x\n", off_str);
printf("// off_mem_rsvmap:\t0x%x\n", off_mem_rsvmap);
- printf("// version:\t\t%d\n", version);
- printf("// last_comp_version:\t%d\n",
+ printf("// version:\t\t%u\n", version);
+ printf("// last_comp_version:\t%u\n",
fdt32_to_cpu(bph->last_comp_version));
if (version >= 2)
printf("// boot_cpuid_phys:\t0x%x\n",