Skip to content

Commit

Permalink
Fix a call to iprintf(), also fix sequencing of some output flushes.
Browse files Browse the repository at this point in the history
Related to Issue esnet#119.
  • Loading branch information
bmah888 committed Mar 14, 2014
1 parent aeb6938 commit 3fa8072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/iperf_client_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ iperf_run_client(struct iperf_test * test)
} else if (test->verbose) {
iprintf(test, "%s\n", version);
iprintf(test, "%s", "");
fflush(stdout);
iprintf("%s\n", get_system_info());
iprintf(test, "%s\n", get_system_info());
iflush(test);
}

/* Start the client and connect to the server */
Expand Down
2 changes: 1 addition & 1 deletion src/iperf_server_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ iperf_run_server(struct iperf_test *test)
} else if (test->verbose) {
iprintf(test, "%s\n", version);
iprintf(test, "%s", "");
fflush(stdout);
iprintf(test, "%s\n", get_system_info());
iflush(test);
}

// Open socket and listen
Expand Down

0 comments on commit 3fa8072

Please sign in to comment.