X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=log.c;h=237bac28899c9feaf603835040732d0901d1acbf;hb=b158577d787beaa6d098be3f180f947f7ad80b22;hp=6c36813d4a9912b5e8742d2da55304f56b00f941;hpb=bf0b7e75c1ccca4026c8880ed8a76fc7ef85f2f3;p=fio.git diff --git a/log.c b/log.c index 6c36813d..237bac28 100644 --- 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, ...) {