summaryrefslogtreecommitdiff
path: root/common/stdio.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-08-25 10:19:40 +0200
committerTom Rini <trini@konsulko.com>2023-09-06 13:51:19 -0400
commit8b3694aab3a54b9d9571bffd56831cf2abc5edd1 (patch)
treed06a81dc9ab0a98644611a98e88c6a2e834b8745 /common/stdio.c
parented48da33927c78e6523753f0969f696cf7bf6f9e (diff)
test: print: Fix hexdump test on 64bit systems
Use the following regex to make this test compatible with both 32bit and 64bit systems. The trick is to use %0*lx format string for the address prefix in the test. " s@\(ut_assert_nextline("\)0\+\([^:]\+\)\(:.*"\)\();\)@\1%0*lx\3, IS_ENABLED(CONFIG_PHYS_64BIT) ? 16 : 8, 0x\2UL\4 " Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/stdio.c')
0 files changed, 0 insertions, 0 deletions