[U-Boot] [PATCH] lib: tiny-printf: Add "%ll" modifier support

Tom Rini trini at konsulko.com
Thu Mar 21 11:22:23 UTC 2019


On Fri, Mar 22, 2019 at 01:12:14AM +0800, Ley Foon Tan wrote:

> Add "%ll" modifier support for tiny printf.
> 
> - Tested on ARM32 and ARM64 systems.
> - Tested "%lld", "%llu", "%llx" and "%p" format with
>   minimum and maximum ranges. Compared tiny printf
>   output with full printf.
> 
> Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
> ---
>  lib/tiny-printf.c | 42 +++++++++++++++++++++++++++++-------------
>  1 file changed, 29 insertions(+), 13 deletions(-)

What's the use case for this, how much does it grow the size, and can
the code in question be changed to use a different format modifier or be
debug() instead?  Tiny printf isn't intended to cover all formats but
rather still allow some amount of printf on constrained systems.
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190321/4ee8bacb/attachment.sig>


More information about the U-Boot mailing list