]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: add %m printf format
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 28 Apr 2025 12:40:03 +0000 (14:40 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 21 May 2025 13:32:01 +0000 (15:32 +0200)
commit7a7cd445d9275be8e4650d390156595685c3ac03
treedada5c5b2ecd6b52efdd70f6ea6cc492d11b974d
parent05b6b2a9efa4b40b7bc1668f887b7d98f719efb1
tools/nolibc: add %m printf format

The %m format can be used to format the current errno.
It is non-standard but supported by other commonly used libcs like glibc and
musl, so applications do rely on them.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250428-nolibc-misc-v2-2-3c043eeab06c@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/stdio.h
tools/testing/selftests/nolibc/nolibc-test.c