projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64b7d6
)
log: only compile log_prevalist() if FIO_INC_DEBUG is set
author
Jens Axboe
<axboe@kernel.dk>
Tue, 5 Jan 2021 20:14:28 +0000
(13:14 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 5 Jan 2021 20:14:28 +0000
(13:14 -0700)
Only used for that case.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index 6c36813d4a9912b5e8742d2da55304f56b00f941..562a29aaddfe0e1d42de369cd8e5645afa96f7a3 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;
@@
-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, ...)
{