X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=bb8bd13bd11f973e616fd3897483e27ec833cbc5;hp=8fec1ce3141f4f5b3f910784c75f5f6a200c88d9;hb=b2ef2748a7c882fbac814f10d0f36630ac16ff89;hpb=24a9713081802d92cd5e195a28f6b62bb979a4a3 diff --git a/backend.c b/backend.c index 8fec1ce3..bb8bd13b 100644 --- a/backend.c +++ b/backend.c @@ -2213,18 +2213,22 @@ static void run_threads(struct sk_out *sk_out) } if (output_format & FIO_OUTPUT_NORMAL) { - log_info("Starting "); + struct buf_output out; + + buf_output_init(&out); + __log_buf(&out, "Starting "); if (nr_thread) - log_info("%d thread%s", nr_thread, + __log_buf(&out, "%d thread%s", nr_thread, nr_thread > 1 ? "s" : ""); if (nr_process) { if (nr_thread) - log_info(" and "); - log_info("%d process%s", nr_process, + __log_buf(&out, " and "); + __log_buf(&out, "%d process%s", nr_process, nr_process > 1 ? "es" : ""); } - log_info("\n"); - log_info_flush(); + __log_buf(&out, "\n"); + log_info_buf(out.buf, out.buflen); + buf_output_free(&out); } todo = thread_number;