aboutsummaryrefslogtreecommitdiff
path: root/ftdump.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-12-04 10:33:20 -0600
committerJon Loeliger <jdl@freescale.com>2007-12-05 08:27:00 -0600
commit501e21cc6f1a7eca5954f5b0611d9853a7b9367e (patch)
tree413285b21f727e04c6a03092faaaea310caa7231 /ftdump.c
parent92cb9a25b1a9117f4dacb0bce8c16b90b73b8698 (diff)
downloaddtc-501e21cc6f1a7eca5954f5b0611d9853a7b9367e.zip
dtc-501e21cc6f1a7eca5954f5b0611d9853a7b9367e.tar.gz
dtc-501e21cc6f1a7eca5954f5b0611d9853a7b9367e.tar.bz2
Print out the total size as part of ftdump
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'ftdump.c')
-rw-r--r--ftdump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftdump.c b/ftdump.c
index 577c2cf..53343d7 100644
--- a/ftdump.c
+++ b/ftdump.c
@@ -87,6 +87,7 @@ static void dump_blob(void *blob)
char *p_struct = blob + be32_to_cpu(bph->off_dt_struct);
char *p_strings = blob + be32_to_cpu(bph->off_dt_strings);
uint32_t version = be32_to_cpu(bph->version);
+ uint32_t totalsize = be32_to_cpu(bph->totalsize);
uint32_t tag;
char *p;
char *s, *t;
@@ -98,6 +99,7 @@ static void dump_blob(void *blob)
shift = 4;
printf("// Version 0x%x tree\n", version);
+ printf("// Totalsize 0x%x(%d)\n", totalsize, totalsize);
for (i = 0; ; i++) {
addr = be64_to_cpu(p_rsvmap[i].address);
size = be64_to_cpu(p_rsvmap[i].size);