diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-11-23 23:56:55 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-05 08:54:44 -0600 |
| commit | ae7bcf6067113c3fcb46ad918517f7fb677e74f2 (patch) | |
| tree | f8f9ad99a3d3cb94254f36c5e1e67b85f46cee92 | |
| parent | 3144be7f405879964d7a300d869e726ea0426fc5 (diff) | |
test: print_display_buffer must consider 64bit support
Function print_buffer() does not support printing u64 on 32bit systems.
Signed-off-by: Heinrich Schuchardt <[email protected]>
| -rw-r--r-- | test/common/print.c | 11 |
1 files 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; |
