filesetup: create zbd_info before jumping to done label
[fio.git] / log.c
diff --git a/log.c b/log.c
index 6c36813d4a9912b5e8742d2da55304f56b00f941..237bac28899c9feaf603835040732d0901d1acbf 100644 (file)
--- a/log.c
+++ b/log.c
@@ -42,6 +42,7 @@ size_t log_valist(const char *fmt, va_list args)
 }
 
 /* add prefix for the specified type in front of the valist */
+#ifdef FIO_INC_DEBUG
 void log_prevalist(int type, const char *fmt, va_list args)
 {
        char *buf1, *buf2;
@@ -61,9 +62,10 @@ 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
 
 ssize_t log_info(const char *format, ...)
 {