From: Jens Axboe Date: Thu, 13 Oct 2011 13:03:25 +0000 (+0200) Subject: Check string length of ts->description, not value X-Git-Tag: fio-1.99.6~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4b0f2258;p=fio.git Check string length of ts->description, not value It's no longer a pointer. Fix a buglet in the terse output printing. Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index a053c8be..5e0fe436 100644 --- a/stat.c +++ b/stat.c @@ -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)