diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c index 16fe942..e19aea2 100644 --- a/src/iperf_client_api.c +++ b/src/iperf_client_api.c @@ -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 */ diff --git a/src/iperf_server_api.c b/src/iperf_server_api.c index 76290ea..6d8d940 100644 --- a/src/iperf_server_api.c +++ b/src/iperf_server_api.c @@ -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