From: Jens Axboe Date: Thu, 13 Oct 2011 19:05:59 +0000 (+0200) Subject: Only print ts->description if set for non-terse output X-Git-Tag: fio-1.99.7~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=259e47dea8db94a372a73b07b5245d43d4f9ab92 Only print ts->description if set for non-terse output Identical to commit 4b0f2258, but for non-terse output. Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index 5e0fe436..d310686d 100644 --- 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])