mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "licheng.li" <im.lechain@gmail.com>
To: David Laight <david.laight.linux@gmail.com>, Willy Tarreau <w@1wt.eu>
Cc: "Thomas Weißschuh" <linux@weissschuh.net>,
	linux-kernel@vger.kernel.org, im.lechain@gmail.com
Subject: [PATCH v3 0/2] tools/nolibc: support left-aligned printing in printf
Date: Fri, 30 Jan 2026 15:18:45 +0800	[thread overview]
Message-ID: <20260130071847.28715-1-im.lechain@gmail.com> (raw)

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

v3 drop the implicit support for the '0' flag from this patch and
revert to my original goal: strictly supporting left alignment ('-').

Best regards, Cheng Li

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

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

-- 
2.52.0


             reply	other threads:[~2026-01-30  7:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30  7:18 licheng.li [this message]
2026-01-30  7:18 ` [PATCH v3 1/2] tools/nolibc: support left alignment (-) " licheng.li
2026-01-30  8:14   ` David Laight
2026-01-30  7:18 ` [PATCH v3 2/2] selftests/nolibc: add tests for printf left alignment and zero padding licheng.li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260130071847.28715-1-im.lechain@gmail.com \
    --to=im.lechain@gmail.com \
    --cc=david.laight.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@weissschuh.net \
    --cc=w@1wt.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®