syslet: we have fls(), use it for rounding ring size up
[fio.git] / log.c
diff --git a/log.c b/log.c
index 66b8f5babfe106ba3d7d1a68ab02d393d3467c22..039e74b25e77c5098631b83d1e0fbf16b26b0e27 100644 (file)
--- a/log.c
+++ b/log.c
@@ -294,7 +294,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 +328,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);