More random fixes
[fio.git] / log.c
diff --git a/log.c b/log.c
index 66b8f5babfe106ba3d7d1a68ab02d393d3467c22..5b21ee224d2b7a24131563581e5ff4e019f7c118 100644 (file)
--- a/log.c
+++ b/log.c
@@ -84,6 +84,9 @@ int read_iolog_get(struct thread_data *td, struct io_u *io_u)
                io_u->file = &td->files[ipo->fileno];
                get_file(io_u->file);
 
+               dprint(FD_IO, "iolog: get %llu/%lu/%s\n", io_u->offset,
+                                       io_u->buflen, io_u->file->file_name);
+
                if (ipo->delay)
                        iolog_delay(td, ipo->delay);
 
@@ -294,7 +297,7 @@ static int read_iolog(struct thread_data *td, FILE *f)
        unsigned int bytes;
        char *str, *p;
        int reads, writes;
-       enum fio_ddir rw;
+       int rw;
 
        /*
         * Read in the read iolog and store it, reuse the infrastructure
@@ -328,7 +331,7 @@ static int read_iolog(struct thread_data *td, FILE *f)
                INIT_LIST_HEAD(&ipo->list);
                ipo->offset = offset;
                ipo->len = bytes;
-               ipo->ddir = rw;
+               ipo->ddir = (enum fio_ddir) rw;
                if (bytes > td->o.max_bs[rw])
                        td->o.max_bs[rw] = bytes;
                list_add_tail(&ipo->list, &td->io_log_list);