aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 3055c16..e87d6c1 100644
--- a/util.c
+++ b/util.c
@@ -376,7 +376,7 @@ void utilfdt_print_data(const char *data, int len)
printf(" = <");
for (i = 0; i < len; i += 4)
- printf("0x%08x%s", fdt32_to_cpu(cell[i]),
+ printf("0x%08x%s", fdt32_to_cpu(cell[i / 4]),
i < (len - 4) ? " " : "");
printf(">");
} else {