Skip to contentSkip to conversation

selftests/net: toeplitz: fix udp option

PATCH Applied Willem de Bruijn 2 participants 2 messages Dec 11, 2021 – Dec 13, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/net: toeplitz: fix udp option

From: Willem de Bruijn <[email protected]>

Tiny fix. Option -u ("use udp") does not take an argument.

It can cause the next argument to silently be ignored.

Fixes 5ebfb4cc3048 ("selftests/net: toeplitz test")
---
 tools/testing/selftests/net/toeplitz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/toeplitz.c +1 -1
index 710ac956bdb3..c5489341cfb8 100644
@@ -498,7 +498,7 @@ static void parse_opts(int argc, char **argv)
 	bool have_toeplitz = false;
 	int index, c;
 
-	while ((c = getopt_long(argc, argv, "46C:d:i:k:r:stT:u:v", long_options, &index)) != -1) {
+	while ((c = getopt_long(argc, argv, "46C:d:i:k:r:stT:uv", long_options, &index)) != -1) {
 		switch (c) {
 		case '4':
 			cfg_family = AF_INET;
Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 10 lines · On Sat, 11 Dec 2021 14:30:31 -0500 you wrote:

From: Willem de Bruijn <[email protected]>

Tiny fix. Option -u ("use udp") does not take an argument.

It can cause the next argument to silently be ignored.

Fixes 5ebfb4cc3048 ("selftests/net: toeplitz test")

[...]

Here is the summary with links:
- [net] selftests/net: toeplitz: fix udp option

    https://git.kernel.org/netdev/net/c/a8d13611b4a7

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html