[PATCH] malloc_simple: Remove usage of unsupported %zx format string

Tom Rini trini at konsulko.com
Fri Feb 11 18:07:25 CET 2022


On Thu, Feb 03, 2022 at 07:51:37PM +0100, Pali Rohár wrote:

> 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 at kernel.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220211/2504c2df/attachment.sig>


More information about the U-Boot mailing list