[U-Boot] [PATCH] bdinfo: print fdt_blob

for debugging it is handy to know the fdt_blob address. So print it in bdinfo.
Signed-off-by: Heiko Schocher hs@denx.de ---
cmd/bdinfo.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ff3cce0..ef11e72 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -376,6 +376,8 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, printf("Early malloc usage: %lx / %x\n", gd->malloc_ptr, CONFIG_SYS_MALLOC_F_LEN); #endif + if (gd->fdt_blob) + printf("fdt_blob = %p\n", gd->fdt_blob);
return 0; }

On Wednesday 21 June 2017 09:52 AM, Heiko Schocher wrote:
for debugging it is handy to know the fdt_blob address. So print it in bdinfo.
Signed-off-by: Heiko Schocher hs@denx.de
Nice. Reviewed-by: Lokesh Vutla lokeshvutla@ti.com
Thanks and regards, Lokesh
cmd/bdinfo.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ff3cce0..ef11e72 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -376,6 +376,8 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, printf("Early malloc usage: %lx / %x\n", gd->malloc_ptr, CONFIG_SYS_MALLOC_F_LEN); #endif
if (gd->fdt_blob)
printf("fdt_blob = %p\n", gd->fdt_blob);
return 0;
}

On Wed, Jun 21, 2017 at 06:22:41AM +0200, Heiko Schocher wrote:
for debugging it is handy to know the fdt_blob address. So print it in bdinfo.
Signed-off-by: Heiko Schocher hs@denx.de Reviewed-by: Lokesh Vutla lokeshvutla@ti.com
Applied to u-boot/master, thanks!

On 20 June 2017 at 22:22, Heiko Schocher hs@denx.de wrote:
for debugging it is handy to know the fdt_blob address. So print it in bdinfo.
Signed-off-by: Heiko Schocher hs@denx.de
cmd/bdinfo.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
participants (4)
-
Heiko Schocher
-
Lokesh Vutla
-
Simon Glass
-
Tom Rini