X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=b21ec18d787821dbefb4c2b9987b1de9bf236c93;hp=2daeb2a63067ab4d85df59c9228cf4ae3ec2584e;hb=2ba1c290d09af6d630d84a58b97b8032f73bc2ce;hpb=691394d3e3b520584207ab0651e6e0354edc4bdb;ds=sidebyside diff --git a/fio.h b/fio.h index 2daeb2a6..b21ec18d 100644 --- a/fio.h +++ b/fio.h @@ -984,7 +984,18 @@ extern unsigned long fio_debug; do { \ if (((type) & fio_debug) == 0) \ break; \ - printf(str, ##args); \ + log_info(str, ##args); \ } while (0) +static inline void dprint_io_u(struct io_u *io_u, const char *p) +{ + struct fio_file *f = io_u->file; + + 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"); +} + #endif