summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-11-23 23:57:10 +0100
committerTom Rini <[email protected]>2025-12-05 08:54:44 -0600
commit21fbda84b39a64fe74c1e34e4ff6e070a9ba200e (patch)
treef3e5cc1282e594d2ea541b51a24868b02babe61c /test
parentc2ee1e3c4a7924c621f2852713ece0f17495eb08 (diff)
cmd: fix 'fdt get value'
The 32bit cells of a device-tree property are big-endian. When printing them via 0x08x we must first convert to the host endianness. Remove the restriction to 20 bytes length. This would not allow to read an SHA256 value. Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/cmd/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c
index 4c3c6308ab4..8ce888770ac 100644
--- a/test/cmd/fdt.c
+++ b/test/cmd/fdt.c
@@ -494,7 +494,7 @@ static int fdt_test_get_value_common(struct unit_test_state *uts,
* longer is an error. This is a special case for handling hashes.
*/
ut_assertok(fdt_test_get_value_string(uts, node, "regs", NULL,
- "3412000000100000", 0));
+ "0000123400001000", 0));
/* Test getting 0th element of $node node regs property */
ut_assertok(fdt_test_get_value_string(uts, node, "regs", "0", NULL,