]> git.baikalelectronics.ru Git - uboot.git/commit
malloc_simple: Remove usage of unsupported %zx format string
authorPali Rohár <pali@kernel.org>
Thu, 3 Feb 2022 18:51:37 +0000 (19:51 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 11 Feb 2022 14:00:47 +0000 (09:00 -0500)
commiteeabec340357ed19fce21ac048287b679bd3d32c
tree16a1b44b87ac531f64b7d82a82dc7da7622f4688
parent7c40efde0953fffb22d82e9e60ebdf18339e7e6f
malloc_simple: Remove usage of unsupported %zx format string

Replace %zx by %lx and cast size_t to ulong.

U-Boot currently prints garbage debug output:
size=x, ptr=18, limit=18: 4002a000

With this change it prints correct debug data:
size=18, ptr=18, limit=2000: 4002a000

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/malloc_simple.c