stat: move final \n of terse output to the end
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Mar 2012 18:22:21 +0000 (19:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Mar 2012 18:22:21 +0000 (19:22 +0100)
Don't print a new line, description, then another new line.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c

diff --git a/stat.c b/stat.c
index e72148b49ad0825f3e154bda0a1a303715f70764..26f45f4d39a4c58bd6c6fca9c8262cf10c9b2f6d 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -782,11 +782,12 @@ static void show_thread_status_terse_v3(struct thread_stat *ts,
        /* Additional output if continue_on_error set - default off*/
        if (ts->continue_on_error)
                log_info(";%lu;%d", ts->total_err_count, ts->first_error);
-       log_info("\n");
 
        /* Additional output if description is set */
        if (strlen(ts->description))
-               log_info(";%s\n", ts->description);
+               log_info(";%s", ts->description);
+
+       log_info("\n");
 }
 
 static void show_thread_status_terse(struct thread_stat *ts,