[RESEND][PATCH 03/19] test: print_display_buffer must consider 64bit support

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Nov 23 23:56:55 CET 2025


Function print_buffer() does not support printing u64 on 32bit systems.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 test/common/print.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/test/common/print.c b/test/common/print.c
index f33476a36b4..a8feb07971d 100644
--- a/test/common/print.c
+++ b/test/common/print.c
@@ -4,6 +4,7 @@
  */
 
 #include <command.h>
+#include <compiler.h>
 #include <efi_api.h>
 #include <display_options.h>
 #include <log.h>
@@ -212,10 +213,12 @@ static int print_display_buffer(struct unit_test_state *uts)
 	ut_assert_console_end();
 
 	/* 64-bit */
-	print_buffer(0, buf, 8, 3, 0);
-	ut_assert_nextline("00000000: 7766554433221100 ffeeddccbbaa9988  ..\"3DUfw........");
-	ut_assert_nextline("00000010: 0000000000000010                   ........");
-	ut_assert_console_end();
+	if (MEM_SUPPORT_64BIT_DATA) {
+		print_buffer(0, buf, 8, 3, 0);
+		ut_assert_nextline("00000000: 7766554433221100 ffeeddccbbaa9988  ..\"3DUfw........");
+		ut_assert_nextline("00000010: 0000000000000010                   ........");
+		ut_assert_console_end();
+	}
 
 	/* ASCII */
 	buf[1] = 31;
-- 
2.51.0



More information about the U-Boot mailing list