git: c7cf285bb206 - main - tcpsso: fix the level error messages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Oct 2026 21:46:33 UTC
The branch main has been updated by maxim:
URL: https://cgit.FreeBSD.org/src/commit/?id=c7cf285bb2069ff5adc3ca63dbdaf3deb0fe3aeb
commit c7cf285bb2069ff5adc3ca63dbdaf3deb0fe3aeb
Author: Maxim Konovalov <maxim@FreeBSD.org>
AuthorDate: 2026-10-16 21:29:17 +0000
Commit: Maxim Konovalov <maxim@FreeBSD.org>
CommitDate: 2026-10-16 21:44:27 +0000
tcpsso: fix the level error messages
tcpsso incorrectly referred to the optname instead of
the level name/number.
MFC after: 2 weeks
---
usr.sbin/tcpsso/tcpsso.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/usr.sbin/tcpsso/tcpsso.c b/usr.sbin/tcpsso/tcpsso.c
index 14ea71f9ebbd..8be417bf623b 100644
--- a/usr.sbin/tcpsso/tcpsso.c
+++ b/usr.sbin/tcpsso/tcpsso.c
@@ -301,12 +301,12 @@ create_parameters(char *level_str, char *optname_str, char *optval_str,
break;
}
if (so_levels[i].name == NULL)
- errx(1, "unsupported level %s", optname_str);
+ errx(1, "unsupported level %s", level_str);
} else {
if (arg < 0)
- errx(1, "level negative %s", optname_str);
+ errx(1, "level negative %s", level_str);
else if (arg > INT_MAX)
- errx(1, "level too large %s", optname_str);
+ errx(1, "level too large %s", level_str);
else
level = (int)arg;
}