X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=67f0badf8cb690d0b2940038157d19745b7075f0;hb=062c6022d41233523669188e876e913abd6c4e2e;hp=572670ec0acb9792af4e808d69570ff8ea64c617;hpb=79e48f72dea1639bcbee310c354938287b6d5790;p=fio.git diff --git a/fio.h b/fio.h index 572670ec..67f0badf 100644 --- a/fio.h +++ b/fio.h @@ -1006,9 +1006,12 @@ 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, io_u->offset, io_u->buflen, io_u->ddir); - if (f) - dprint(FD_IO, "/%s", f->file_name); - dprint(FD_IO, "\n"); + if (fio_debug & (1 << FD_IO)) { + if (f) + log_info("/%s", f->file_name); + + log_info("\n"); + } } #else #define dprint(type, str, args...)