Add empty <netinet/tcp.h> for Windows
[fio.git] / t / log.c
diff --git a/t/log.c b/t/log.c
index 7f1de27fc5e871729cd4340399df5034ec1f5e2a..ac0230324717f61d736d380400d5152dace86d7c 100644 (file)
--- a/t/log.c
+++ b/t/log.c
@@ -13,3 +13,16 @@ int log_err(const char *format, ...)
 
        return fwrite(buffer, len, 1, stderr);
 }
+
+int log_info(const char *format, ...)
+{
+       char buffer[1024];
+       va_list args;
+       size_t len;
+
+       va_start(args, format);
+       len = vsnprintf(buffer, sizeof(buffer), format, args);
+       va_end(args);
+
+       return fwrite(buffer, len, 1, stdout);
+}