[PATCH] tiny-printf: Add support for upper case hex values

Michael Walle mwalle at kernel.org
Tue Apr 1 10:55:42 CEST 2025


Hi,

> The issue is that disabling TINY_PRINTF may not be possible (size 
> constraints) and some code is compiled for different stages and people 
> typically don't check whether the format used in printf is valid with 
> tiny_printf. I've had this issue already in the past, I vaguely recall 
> "complaining" about it on IRC.

Yes, I've stumbled on "%pa" with tiny printf (i.e. in
drivers/pinctrl/pinctrl-single.c) which is printing the very wrong
value, actually :) So printing anything unknown as '?' would really
help here.

-michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 297 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250401/8dba82c8/attachment.sig>


More information about the U-Boot mailing list