From 4b0f22588568035952ea4c4673fdb1d7f5444eed Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 13 Oct 2011 15:03:25 +0200 Subject: [PATCH] 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 --- stat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.25.1