From: Huadong Liu Date: Thu, 21 Feb 2013 09:24:20 +0000 (+0100) Subject: check output_format before calling show_idle_prof_stats() X-Git-Tag: fio-2.1~57^2~20 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=609040037aabb49b7ac65562587c17d990f6b303;ds=sidebyside check output_format before calling show_idle_prof_stats() Do the proper checks for output format type and whether we are a server backend or not. Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index 8835f7f9..c3d3c4ad 100644 --- a/stat.c +++ b/stat.c @@ -1322,10 +1322,10 @@ void show_run_stats(void) if (is_backend) fio_server_send_du(); - else if (output_format == FIO_OUTPUT_NORMAL) + else if (output_format == FIO_OUTPUT_NORMAL) { show_disk_util(0, NULL); - - show_idle_prof_stats(FIO_OUTPUT_NORMAL, NULL); + show_idle_prof_stats(FIO_OUTPUT_NORMAL, NULL); + } free(runstats); free(threadstats);