selftests/nolibc: reduce syscalls during space padding
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 17 Apr 2023 16:01:31 +0000 (18:01 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 9 Jun 2023 18:46:08 +0000 (11:46 -0700)
commit443de903146e83c13ce43d4ad7ed470129aa348a
treecd88557eea95652218b65a7e544d77a1f8bae0ac
parentec8e1b73d58863d1600ca292c9d18de4ec258ba7
selftests/nolibc: reduce syscalls during space padding

Previously each space character used for alignment during test execution
was written in a single write() call.
This would make the output from strace fairly unreadable.
Coalesce all spaces into a single call to write().

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/nolibc-test.c