]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/nolibc: Use printf variable field widths and precisions
authorDavid Laight <david.laight.linux@gmail.com>
Sun, 8 Mar 2026 11:37:42 +0000 (11:37 +0000)
committerThomas Weißschuh <linux@weissschuh.net>
Fri, 20 Mar 2026 16:58:26 +0000 (17:58 +0100)
commit9bc019e7ba1f797ad7e24ebb33f4fa0be011ce5b
tree24dc15ae858bf73c777c8bb8476c5fa298f99f6a
parent248c7cf60c808f09044af1ce1d2c7c707696dc1e
selftests/nolibc: Use printf variable field widths and precisions

Now that printf supports '*' for field widths and precisions
then can be used to simplify the test output.
 - aligning the "[OK]" strings.
 - reporting the expected sprintf() output when there is a mismatch.

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260308113742.12649-18-david.laight.linux@gmail.com
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/nolibc-test.c