]> www.infradead.org Git - users/hch/misc.git/commit
tools/nolibc: implement width padding in printf()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Apr 2025 09:00:55 +0000 (11:00 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 22 Apr 2025 08:59:06 +0000 (10:59 +0200)
commite90ce42e81381665dbcedc5fa12e74759ee89639
tree31648914be20388d3115a8572a83ff454cfcbfc6
parentb0bd7760df94714f78ccf98b3aa612ed71e48770
tools/nolibc: implement width padding in printf()

printf can pad each argument to a certain width.
Implement this for compatibility with the kselftest harness.
Currently only padding with spaces is supported.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/stdio.h
tools/testing/selftests/nolibc/nolibc-test.c