Add log_valist()
[fio.git] / log.h
diff --git a/log.h b/log.h
index 12c9a55242df84570adf16c5ef06d551ff8a303b..71f89c1a04c0eeb7c0187ef59a8a6ce7cbce9db1 100644 (file)
--- a/log.h
+++ b/log.h
@@ -1,6 +1,8 @@
 #ifndef FIO_LOG_H
 #define FIO_LOG_H
 
+#include <stdio.h>
+
 extern FILE *f_out;
 extern FILE *f_err;
 
@@ -14,6 +16,7 @@ extern FILE *f_err;
        } while (0)
 
 #define log_info(args...)      fprintf(f_out, ##args)
+#define log_valist(str, args)  vfprintf(f_out, (str), (args))
 
 FILE *get_f_out(void);
 FILE *get_f_err(void);