From 947569c1e49760843343fb4af56901bc611328c3 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Wed, 11 Jan 2017 02:39:44 +0900 Subject: [PATCH] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) Not sure what the point of 8172fe97 was, but shouldn't all the prints within a single line be dprint() (or all be log_info()) ? Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- ioengine.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ioengine.h b/ioengine.h index 08e8fabf..89873e72 100644 --- a/ioengine.h +++ b/ioengine.h @@ -238,12 +238,9 @@ static inline void dprint_io_u(struct io_u *io_u, const char *p) dprint(FD_IO, "%s: io_u %p: off=%llu/len=%lu/ddir=%d", p, io_u, (unsigned long long) io_u->offset, io_u->buflen, io_u->ddir); - if (fio_debug & (1 << FD_IO)) { - if (f) - log_info("/%s", f->file_name); - - log_info("\n"); - } + if (f) + dprint(FD_IO, "/%s", f->file_name); + dprint(FD_IO, "\n"); } #else #define dprint_io_u(io_u, p) -- 2.25.1