From 4065c6a4949fa85e5f2d8de8a5556130231dd680 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 5 Jan 2021 13:14:28 -0700 Subject: [PATCH] log: only compile log_prevalist() if FIO_INC_DEBUG is set Only used for that case. Signed-off-by: Jens Axboe --- log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/log.c b/log.c index 6c36813d..562a29aa 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; @@ -64,6 +65,7 @@ void log_prevalist(int type, const char *fmt, va_list args) len = log_info_buf(buf2, len); free(buf2); } +#endif ssize_t log_info(const char *format, ...) { -- 2.25.1