From 60a257279f249d65d9905e77d3a2fa54ac5aa881 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 11 Jul 2016 11:51:58 -0700 Subject: [PATCH] iolog: flush_log() can be bool Signed-off-by: Jens Axboe --- backend.c | 2 +- iolog.c | 2 +- iolog.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend.c b/backend.c index bb0200bb..dc6f530d 100644 --- a/backend.c +++ b/backend.c @@ -2388,7 +2388,7 @@ int fio_backend(struct sk_out *sk_out) for (i = 0; i < DDIR_RWDIR_CNT; i++) { struct io_log *log = agg_io_log[i]; - flush_log(log, 0); + flush_log(log, false); free_log(log); } } diff --git a/iolog.c b/iolog.c index ff521df4..4c87f1cb 100644 --- a/iolog.c +++ b/iolog.c @@ -965,7 +965,7 @@ int iolog_file_inflate(const char *file) #endif -void flush_log(struct io_log *log, int do_append) +void flush_log(struct io_log *log, bool do_append) { void *buf; FILE *f; diff --git a/iolog.h b/iolog.h index 0da70670..a58e3f09 100644 --- a/iolog.h +++ b/iolog.h @@ -232,7 +232,7 @@ static inline bool per_unit_log(struct io_log *log) extern void finalize_logs(struct thread_data *td, bool); extern void setup_log(struct io_log **, struct log_params *, const char *); -extern void flush_log(struct io_log *, int); +extern void flush_log(struct io_log *, bool); extern void flush_samples(FILE *, void *, uint64_t); extern void free_log(struct io_log *); extern void fio_writeout_logs(bool); -- 2.25.1