diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2017-09-04 23:12:12 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-09-15 05:27:48 -0600 |
commit | 81ecc5d92badfcf1415a6052b5896a62271a94dc (patch) | |
tree | 08ba141431f1705916dfd046680c9da9a324dff3 | |
parent | fc7c31891c40dd1aac2e71e9d1546727ca2b3556 (diff) | |
download | u-boot-81ecc5d92badfcf1415a6052b5896a62271a94dc.tar.gz |
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>
-rw-r--r-- | cmd/fdt.c | 7 |
1 files changed, 3 insertions, 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)) return CMD_RET_FAILURE; - ret = fdt_overlay_apply(working_fdt, blob); - if (ret) { - printf("fdt_overlay_apply(): %s\n", fdt_strerror(ret)); + /* apply method prints messages on error */ + ret = fdt_overlay_apply_verbose(working_fdt, blob); + if (ret) return CMD_RET_FAILURE; - } } #endif /* resize the fdt */ |