Re: [PATCH 1/2] tools/nolibc: support left-aligned printing in printf
From: Willy Tarreau
Date: Wed Jan 28 2026 - 02:54:05 EST
On Wed, Jan 28, 2026 at 08:47:28AM +0100, Willy Tarreau wrote:
> On Mon, Jan 26, 2026 at 11:10:37AM +0800, licheng.li wrote:
> > From: Cheng Li <im.lechain@xxxxxxxxx>
> >
> > Currently, __nolibc_printf() in nolibc does not support the '-' flag
> > for left alignment. This limits the ability to format tabular output
> > nicely.
> >
> > This patch adds support for the '-' flag. The implementation is kept
> > minimal to minimize the binary size impact.
Since your patch also adds support for the '0' flag to left-pad
with zeroes, this should be mentioned in the commit message.
thanks,
Willy