[dtc] ftdump missing be32_to_cpu() on size cell.

From: Ed Swarthout <hidden>
Date: 2007-03-14 22:34:00
Subsystem: the rest · Maintainer: Linus Torvalds

---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help