summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-09-07 12:19:43 -0600
committerJens Axboe <axboe@kernel.dk>2018-09-07 12:19:43 -0600
commit71ccdf58a51e339962db65dc8d875527cf795b00 (patch)
tree108b8ba6642de43ab0217e625beaf0d5dc12545c /init.c
parentc2fcb6bcecf0d4208154178de55d918d2a4abf61 (diff)
init: use __log_buf() if we know buf != NULL
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init.c')
-rw-r--r--init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.c b/init.c
index eff2dea..b13cee2 100644
--- a/init.c
+++ b/init.c
@@ -1694,18 +1694,18 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num,
}
buf_output_init(&out);
- log_buf(&out, "%s: (g=%d): rw=%s, ", td->o.name,
+ __log_buf(&out, "%s: (g=%d): rw=%s, ", td->o.name,
td->groupid,
ddir_str(o->td_ddir));
if (o->bs_is_seq_rand)
- log_buf(&out, "bs=(R) %s-%s, (W) %s-%s, bs_is_seq_rand, ",
+ __log_buf(&out, "bs=(R) %s-%s, (W) %s-%s, bs_is_seq_rand, ",
c1, c2, c3, c4);
else
- log_buf(&out, "bs=(R) %s-%s, (W) %s-%s, (T) %s-%s, ",
+ __log_buf(&out, "bs=(R) %s-%s, (W) %s-%s, (T) %s-%s, ",
c1, c2, c3, c4, c5, c6);
- log_buf(&out, "ioengine=%s, iodepth=%u\n",
+ __log_buf(&out, "ioengine=%s, iodepth=%u\n",
td->io_ops->name, o->iodepth);
log_info_buf(out.buf, out.buflen);