t/jobs: Fix a typo in jobs 23 & 24
[fio.git] / log.c
diff --git a/log.c b/log.c
index 562a29aaddfe0e1d42de369cd8e5645afa96f7a3..df58ea07a5a6c5c4254693dbd75b32927fe7adae 100644 (file)
--- a/log.c
+++ b/log.c
@@ -1,3 +1,5 @@
+#include "log.h"
+
 #include <unistd.h>
 #include <string.h>
 #include <stdarg.h>
@@ -62,7 +64,7 @@ void log_prevalist(int type, const char *fmt, va_list args)
        free(buf1);
        if (len < 0)
                return;
-       len = log_info_buf(buf2, len);
+       log_info_buf(buf2, len);
        free(buf2);
 }
 #endif