From: Pantelis Antoniou Date: Mon, 4 Sep 2017 20:12:12 +0000 (+0300) Subject: fdt: Switch to using the verbose overlay application method X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=81ecc5d92badfcf1415a6052b5896a62271a94dc;p=u-boot.git 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 Acked-by: Simon Glass --- diff --git a/cmd/fdt.c b/cmd/fdt.c index d7654b2c4f..955a0088c6 100644 --- a/cmd/fdt.c +++ b/cmd/fdt.c @@ -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 */