void get_file(struct fio_file *f)
{
- dprint(FD_FILE, "get file %s/%d\n", f->file_name, f->references);
+ dprint(FD_FILE, "get file %s, ref=%d\n", f->file_name, f->references);
assert(f->flags & FIO_FILE_OPEN);
f->references++;
}
void put_file(struct thread_data *td, struct fio_file *f)
{
- dprint(FD_FILE, "get put %s/%d\n", f->file_name, f->references);
+ dprint(FD_FILE, "put file %s, ref=%d\n", f->file_name, f->references);
if (!(f->flags & FIO_FILE_OPEN))
return;
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");
+ }
}
#endif