bdinfo: print fdt_blob
authorHeiko Schocher <hs@denx.de>
Wed, 21 Jun 2017 04:22:41 +0000 (06:22 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jun 2017 14:38:08 +0000 (10:38 -0400)
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>
cmd/bdinfo.c

index 48dba20..45baa2e 100644 (file)
@@ -375,6 +375,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;
 }