* [FDT][PATCH] Print out the total size as part of ftdump
@ 2007-12-04 16:33 Kumar Gala
2007-12-04 22:20 ` David Gibson
2007-12-05 14:37 ` Jon Loeliger
0 siblings, 2 replies; 4+ messages in thread
From: Kumar Gala @ 2007-12-04 16:33 UTC (permalink / raw)
To: Jon Loeliger; +Cc: linuxppc-dev
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
ftdump.c | 2 ++
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);
--
1.5.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [FDT][PATCH] Print out the total size as part of ftdump
2007-12-04 16:33 [FDT][PATCH] Print out the total size as part of ftdump Kumar Gala
@ 2007-12-04 22:20 ` David Gibson
2007-12-04 23:38 ` Kumar Gala
2007-12-05 14:37 ` Jon Loeliger
1 sibling, 1 reply; 4+ messages in thread
From: David Gibson @ 2007-12-04 22:20 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, Jon Loeliger
On Tue, Dec 04, 2007 at 10:33:20AM -0600, Kumar Gala wrote:
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
You know, the whole batch of fprintf()s of header information in
dt_from_blob() are really just a debugging hack that uglifies dtc's
output. The whole lot could be moved over to ftdump instead, which
is, after all, *supposed* to be a debugging hack.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FDT][PATCH] Print out the total size as part of ftdump
2007-12-04 22:20 ` David Gibson
@ 2007-12-04 23:38 ` Kumar Gala
0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2007-12-04 23:38 UTC (permalink / raw)
To: David Gibson; +Cc: linuxppc-dev, Jon Loeliger
On Dec 4, 2007, at 4:20 PM, David Gibson wrote:
> On Tue, Dec 04, 2007 at 10:33:20AM -0600, Kumar Gala wrote:
>> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
>
> You know, the whole batch of fprintf()s of header information in
> dt_from_blob() are really just a debugging hack that uglifies dtc's
> output. The whole lot could be moved over to ftdump instead, which
> is, after all, *supposed* to be a debugging hack.
Yeah, I realized having a way to dump just the header info was nice.
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FDT][PATCH] Print out the total size as part of ftdump
2007-12-04 16:33 [FDT][PATCH] Print out the total size as part of ftdump Kumar Gala
2007-12-04 22:20 ` David Gibson
@ 2007-12-05 14:37 ` Jon Loeliger
1 sibling, 0 replies; 4+ messages in thread
From: Jon Loeliger @ 2007-12-05 14:37 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev
So, like, the other day Kumar Gala mumbled:
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> ftdump.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
Applied.
jdl
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-05 14:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04 16:33 [FDT][PATCH] Print out the total size as part of ftdump Kumar Gala
2007-12-04 22:20 ` David Gibson
2007-12-04 23:38 ` Kumar Gala
2007-12-05 14:37 ` Jon Loeliger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).