Skip to content

Commit 9d78f79

Browse files
authored
Minor changes to .gitignore and error messages (#1408)
* minor changes * Changes per reviewer comments
1 parent 3d1218b commit 9d78f79

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ examples/.libs
3030
examples/Makefile
3131
examples/mic
3232
examples/mis
33+
.vscode/

src/iperf_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ int test_is_authorized(struct iperf_test *test){
20062006
return 0;
20072007
} else {
20082008
if (test->debug) {
2009-
iperf_printf(test, report_authentication_failed, username, ts);
2009+
iperf_printf(test, report_authentication_failed, ret, username, ts);
20102010
}
20112011
free(username);
20122012
free(password);

src/iperf_error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ iperf_strerror(int int_errno)
260260
snprintf(errstr, len, "received an unknown control message");
261261
break;
262262
case IESENDMESSAGE:
263-
snprintf(errstr, len, "unable to send control message");
263+
snprintf(errstr, len, "unable to send control message - port may not be available, the other side may have stopped running, etc.");
264264
perr = 1;
265265
break;
266266
case IERECVMESSAGE:
267-
snprintf(errstr, len, "unable to receive control message");
267+
snprintf(errstr, len, "unable to receive control message - port may not be available, the other side may have stopped running, etc.");
268268
perr = 1;
269269
break;
270270
case IESENDPARAMS:

src/iperf_locale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ const char report_authentication_succeeded[] =
307307
"Authentication succeeded for user '%s' ts %ld\n";
308308

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

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

0 commit comments

Comments
 (0)