]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: nettest: Fix typo in log and error messages for clarity
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sun, 15 Jun 2025 08:48:12 +0000 (01:48 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 23:22:59 +0000 (16:22 -0700)
commit416b6030e39e29f82e1a39fd9f321e5b69d935c1
treed64bf0cd740a9d1123f0e75bd913ffe15ddcbe81
parent4b7da7341bea62d24fe2f06320f39368dec9603d
selftests: nettest: Fix typo in log and error messages for clarity

This patch corrects several logging and error message in nettest.c:
- Corrects function name in log messages "setsockopt" -> "getsockopt".
- Closes missing parentheses in "setsockopt(IPV6_FREEBIND)".
- Replaces misleading error text ("Invalid port") with the correct
  description ("Invalid prefix length").
- remove Redundant wording like "status from status" and clarifies
  context in IPC error messages.

These changes improve readability and aid in debugging test output.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250615084822.1344759-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/nettest.c