Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes to .gitignore and error messages #1408

Merged
merged 2 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ examples/.libs
examples/Makefile
examples/mic
examples/mis
.vscode/
2 changes: 1 addition & 1 deletion src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,7 @@ int test_is_authorized(struct iperf_test *test){
return 0;
} else {
if (test->debug) {
iperf_printf(test, report_authentication_failed, username, ts);
iperf_printf(test, report_authentication_failed, ret, username, ts);
}
free(username);
free(password);
Expand Down
4 changes: 2 additions & 2 deletions src/iperf_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ iperf_strerror(int int_errno)
snprintf(errstr, len, "received an unknown control message");
break;
case IESENDMESSAGE:
snprintf(errstr, len, "unable to send control message");
snprintf(errstr, len, "unable to send control message - port may not be available, the other side may have stopped running, etc.");
perr = 1;
break;
case IERECVMESSAGE:
snprintf(errstr, len, "unable to receive control message");
snprintf(errstr, len, "unable to receive control message - port may not be available, the other side may have stopped running, etc.");
perr = 1;
break;
case IESENDPARAMS:
Expand Down
2 changes: 1 addition & 1 deletion src/iperf_locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const char report_authentication_succeeded[] =
"Authentication succeeded for user '%s' ts %ld\n";

const char report_authentication_failed[] =
"Authentication failed for user '%s' ts %ld\n";
"Authentication failed with return code %d for user '%s' ts %ld\n";

const char report_reverse[] =
"Reverse mode, remote host %s is sending\n";
Expand Down