Skip to content

Commit

Permalink
Minor changes to .gitignore and error messages (#1408)
Browse files Browse the repository at this point in the history
* minor changes

* Changes per reviewer comments
  • Loading branch information
davidBar-On committed Nov 15, 2022
1 parent 3d1218b commit 9d78f79
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
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

0 comments on commit 9d78f79

Please sign in to comment.