mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-06 06:41:40 +00:00
fdt: Switch to using the verbose overlay application method
The verbose overlay application method prints out more helpful messages, so switch to it. Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fc7c31891c
commit
81ecc5d92b
1 changed files with 3 additions and 4 deletions
|
@ -667,11 +667,10 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
if (!fdt_valid(&blob))
|
if (!fdt_valid(&blob))
|
||||||
return CMD_RET_FAILURE;
|
return CMD_RET_FAILURE;
|
||||||
|
|
||||||
ret = fdt_overlay_apply(working_fdt, blob);
|
/* apply method prints messages on error */
|
||||||
if (ret) {
|
ret = fdt_overlay_apply_verbose(working_fdt, blob);
|
||||||
printf("fdt_overlay_apply(): %s\n", fdt_strerror(ret));
|
if (ret)
|
||||||
return CMD_RET_FAILURE;
|
return CMD_RET_FAILURE;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* resize the fdt */
|
/* resize the fdt */
|
||||||
|
|
Loading…
Add table
Reference in a new issue