diff mbox series

[U-Boot,v3,03/14] fdt: Switch to using the verbose overlay application method

Message ID 1504555943-12893-4-git-send-email-pantelis.antoniou@konsulko.com
State Accepted
Commit 81ecc5d92badfcf1415a6052b5896a62271a94dc
Delegated to: Simon Glass
Headers show
Series uboot overlays, FIT image & unittest | expand

Commit Message

Pantelis Antoniou Sept. 4, 2017, 8:12 p.m. UTC
The verbose overlay application method prints out more helpful
messages, so switch to it.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
---
 cmd/fdt.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Simon Glass Sept. 9, 2017, 4:53 a.m. UTC | #1
On 4 September 2017 at 14:12, Pantelis Antoniou
<pantelis.antoniou@konsulko.com> wrote:
> The verbose overlay application method prints out more helpful
> messages, so switch to it.
>
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> ---
>  cmd/fdt.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass Sept. 15, 2017, 7:26 p.m. UTC | #2
On 8 September 2017 at 22:53, Simon Glass <sjg@chromium.org> wrote:
> On 4 September 2017 at 14:12, Pantelis Antoniou
> <pantelis.antoniou@konsulko.com> wrote:
>> The verbose overlay application method prints out more helpful
>> messages, so switch to it.
>>
>> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
>> ---
>>  cmd/fdt.c | 7 +++----
>>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-fdt, thanks!
diff mbox series

Patch

diff --git a/cmd/fdt.c b/cmd/fdt.c
index 118613f..362a621 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -669,11 +669,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 */