X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=log.c;h=4822c33526d29fd4b7d9c0731f5030c75c982909;hb=1cc6579e7dc114347467ed359f015943b83bb4e9;hp=d481edf2fd17efb711d454047f625e56b1aebe49;hpb=8ea39c32d29428b17bfe9c806fc33f0c8adfe118;p=fio.git 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];