Print the actual error code in a couple of places in boot_get_fdt_fit().
These are FDT error codes, not errno, so printing the string is more
helpful than printing the numeric value.
The only caller of boot_get_fdt_fit() unconditionally replaces the
returned error code (fdt_noffset) with ENOENT so the actual error would
otherwise be lost.
Signed-off-by: David Lechner <dlechner@baylibre.com>
err = fdt_open_into(ov, ovcopy, ovcopylen);
if (err < 0) {
- printf("failed on fdt_open_into for DTO\n");
+ printf("failed on fdt_open_into for DTO: %s\n",
+ fdt_strerror(err));
fdt_noffset = err;
goto out;
}
base = map_sysmem(load, len + ovlen);
err = fdt_open_into(base, base, len + ovlen);
if (err < 0) {
- printf("failed on fdt_open_into\n");
+ printf("failed on fdt_open_into: %s\n",
+ fdt_strerror(err));
fdt_noffset = err;
goto out;
}