X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=log.c;h=4822c33526d29fd4b7d9c0731f5030c75c982909;hb=6e5c4b8e46c95ca75e30e1110a0d24b2df9c47e9;hp=d481edf2fd17efb711d454047f625e56b1aebe49;hpb=29df29eaf88958c8741103d2056a4773d4959d9d;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];