14 lines
453 B
Diff
14 lines
453 B
Diff
diff --git a/cmd/fdt.c b/cmd/fdt.c
|
|
index 8bd345afa..aa4d8c0f6 100644
|
|
--- a/cmd/fdt.c
|
|
+++ b/cmd/fdt.c
|
|
@@ -58,7 +58,7 @@ static int fdt_value_setenv(const void *nodep, int len, const char *var)
|
|
else if (len == 4) {
|
|
char buf[11];
|
|
|
|
- sprintf(buf, "0x%08X", *(uint32_t *)nodep);
|
|
+ sprintf(buf, "0x%08X", fdt32_to_cpu(*(uint32_t *)nodep));
|
|
setenv(var, buf);
|
|
} else if (len%4 == 0 && len <= 20) {
|
|
/* Needed to print things like sha1 hashes. */
|