X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=log.c;h=4822c33526d29fd4b7d9c0731f5030c75c982909;hp=d481edf2fd17efb711d454047f625e56b1aebe49;hb=fdc0f3b646e417497849d4398029f780b0e5262f;hpb=62232d0618e3f5aa4805b4be34e872895ba1beb2 diff --git a/log.c b/log.c index d481edf2..4822c335 100644 --- a/log.c +++ b/log.c @@ -71,6 +71,14 @@ int log_info(const char *format, ...) return fwrite(buffer, len, 1, f_out); } +int log_info_flush(void) +{ + if (is_backend || log_syslog) + return 0; + + return fflush(f_out); +} + int log_err(const char *format, ...) { char buffer[1024];