client: add a newline after terse disk util
authorVincent Fu <vincent.fu@wdc.com>
Wed, 15 May 2019 20:05:01 +0000 (16:05 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 May 2019 14:42:45 +0000 (08:42 -0600)
In client/server mode terse disk utilization output appears at the end
of each blob of terse output. We need a newline so that the next blob of
terse output starts at the beginning of a line.

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

index 7fe571efd9c2b1b503e6a72c76b2df5fc4a29703..43cfbd43b9d3eb1252a1ce9674afee4a6be69cf8 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1224,8 +1224,10 @@ static void handle_du(struct fio_client *client, struct fio_net_cmd *cmd)
                __log_buf(&client->buf, "\nDisk stats (read/write):\n");
                print_disk_util(&du->dus, &du->agg, 0, &client->buf);
        }
                __log_buf(&client->buf, "\nDisk stats (read/write):\n");
                print_disk_util(&du->dus, &du->agg, 0, &client->buf);
        }
-       if (output_format & FIO_OUTPUT_TERSE && terse_version >= 3)
+       if (output_format & FIO_OUTPUT_TERSE && terse_version >= 3) {
                print_disk_util(&du->dus, &du->agg, 1, &client->buf);
                print_disk_util(&du->dus, &du->agg, 1, &client->buf);
+               __log_buf(&client->buf, "\n");
+       }
 }
 
 static void convert_jobs_eta(struct jobs_eta *je)
 }
 
 static void convert_jobs_eta(struct jobs_eta *je)