From: Tomohiro Kusumi Date: Tue, 10 Jan 2017 17:39:44 +0000 (+0900) Subject: Partly revert 8172fe97 in 2008 (A few debug debug log fixes) X-Git-Tag: fio-2.17~10 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=947569c1e49760843343fb4af56901bc611328c3 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 --- 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)