[dtc] ftdump missing be32_to_cpu() on size cell.
Ed Swarthout
Ed.Swarthout at freescale.com
Thu Mar 15 09:33:19 EST 2007
---
ftdump.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ftdump.c b/ftdump.c
index 67c5228..55209b6 100644
--- a/ftdump.c
+++ b/ftdump.c
@@ -142,7 +142,7 @@ static void dump_blob(void *blob)
fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag);
break;
}
- sz = GET_CELL(p);
+ sz = be32_to_cpu(GET_CELL(p));
s = p_strings + be32_to_cpu(GET_CELL(p));
if (version < 16 && sz >= 8)
p = PALIGN(p, 8);
--
1.5.0.3.290.gc390a
More information about the Linuxppc-dev
mailing list