Only print ts->description if set for non-terse output
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index a053c8be67051bf9014b2136f927eb9ff92303c5..d310686d1295fb3653a34e656efdb72c98fcfe0e 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -520,7 +520,7 @@ void show_thread_status(struct thread_stat *ts, struct group_run_stats *rs)
                                        ts->error, ts->verror, (int) ts->pid);
        }
 
-       if (ts->description)
+       if (strlen(ts->description))
                log_info("  Description  : [%s]\n", ts->description);
 
        if (ts->io_bytes[DDIR_READ])
@@ -701,10 +701,8 @@ static void show_thread_status_terse(struct thread_stat *ts,
        log_info("\n");
 
        /* Additional output if description is set */
-       if (ts->description)
+       if (strlen(ts->description))
                log_info(";%s", ts->description);
-
-       log_info("\n");
 }
 
 static void sum_stat(struct io_stat *dst, struct io_stat *src, int nr)