[PATCH v2 0/2] tools/nolibc: printf left alignment and zero padding

From: licheng.li

Date: Wed Jan 28 2026 - 04:44:50 EST


This series adds support for left alignment ('-') and zero padding ('0')
to nolibc's printf implementation.

v2 incorporates optimizations suggested by Willy Tarreau to further reduce
binary size, and updates the commit message to accurately reflect the
supported features.

Cheng Li (2):
tools/nolibc: support left alignment (-) and zero padding (0) in
printf
selftests/nolibc: add tests for printf left alignment and zero padding

tools/include/nolibc/stdio.h | 20 ++++++++++++++++----
tools/testing/selftests/nolibc/nolibc-test.c | 2 ++
2 files changed, 18 insertions(+), 4 deletions(-)

--
2.52.0