public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH next] wireguard: selftests: Remove spurious precision from banner printf
@ 2026-03-26 20:18 david.laight.linux
  0 siblings, 0 replies; only message in thread
From: david.laight.linux @ 2026-03-26 20:18 UTC (permalink / raw)
  To: Jason A. Donenfeld, Shuah Khan, wireguard, netdev,
	linux-kselftest, linux-kernel
  Cc: David Laight, Masami Hiramatsu, Petr Mladek, Rasmus Villemoes,
	Andy Shevchenko, Steven Rostedt, Sergey Senozhatsky,
	Andrew Morton

From: David Laight <david.laight.linux@gmail.com>

Change ("%*.s", len, "") to ("%*s", len, "").
The former is equivalent to "%*.0s" but is really a typing mistake.
No actual change to the output.

Signed-off-by: David Laight <david.laight.linux@gmail.com>
---
 tools/testing/selftests/wireguard/qemu/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/wireguard/qemu/init.c b/tools/testing/selftests/wireguard/qemu/init.c
index 3e49924dd77e..c87570494d30 100644
--- a/tools/testing/selftests/wireguard/qemu/init.c
+++ b/tools/testing/selftests/wireguard/qemu/init.c
@@ -53,7 +53,7 @@ static void print_banner(void)
 		panic("uname");
 
 	len = strlen("    WireGuard Test Suite on       ") + strlen(utsname.sysname) + strlen(utsname.release) + strlen(utsname.machine);
-	printf("\x1b[45m\x1b[33m\x1b[1m%*.s\x1b[0m\n\x1b[45m\x1b[33m\x1b[1m    WireGuard Test Suite on %s %s %s    \x1b[0m\n\x1b[45m\x1b[33m\x1b[1m%*.s\x1b[0m\n\n", len, "", utsname.sysname, utsname.release, utsname.machine, len, "");
+	printf("\x1b[45m\x1b[33m\x1b[1m%*s\x1b[0m\n\x1b[45m\x1b[33m\x1b[1m    WireGuard Test Suite on %s %s %s    \x1b[0m\n\x1b[45m\x1b[33m\x1b[1m%*s\x1b[0m\n\n", len, "", utsname.sysname, utsname.release, utsname.machine, len, "");
 }
 
 static void seed_rng(void)
-- 
2.39.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-26 20:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 20:18 [PATCH next] wireguard: selftests: Remove spurious precision from banner printf david.laight.linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox