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>
This commit is contained in:
nixiaoming 2018-05-24 10:50:18 +08:00 committed by David Gibson
parent 4b8fcc3d01
commit b9af3b3965
2 changed files with 4 additions and 4 deletions

View file

@ -393,7 +393,7 @@ void dt_to_blob(FILE *f, struct dt_info *dti, int version)
padlen = 0;
if (quiet < 1)
fprintf(stderr,
"Warning: blob size %d >= minimum size %d\n",
"Warning: blob size %u >= minimum size %d\n",
fdt32_to_cpu(fdt.totalsize), minsize);
}
}