Kill leftover debug printf() and re-format a long line
authorDavid Nellans <DNellans@fusionio.com>
Thu, 23 Sep 2010 06:48:15 +0000 (08:48 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 23 Sep 2010 06:48:15 +0000 (08:48 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index a630817f6f41a3b036530affb0a06dce8908b5f0..baa961b103cd954a8536a5e1f1a28777526b95ef 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -246,7 +246,8 @@ static int get_next_block(struct thread_data *td, struct io_u *io_u,
                                ret = get_next_rand_block(td, f, ddir, b);
                } else if (td->o.rw_seq == RW_SEQ_IDENT) {
                        if (f->last_start != -1ULL)
-                               *b = (f->last_start - f->file_offset) / td->o.min_bs[ddir];
+                               *b = (f->last_start - f->file_offset)
+                                       / td->o.min_bs[ddir];
                        else
                                *b = 0;
                        ret = 0;
@@ -278,10 +279,8 @@ static int __get_next_offset(struct thread_data *td, struct io_u *io_u)
                td->ddir_seq_nr = td->o.ddir_seq_nr;
        }
 
-       if (get_next_block(td, io_u, ddir, rw_seq_hit, &b)) {
-               printf("fail\n");
+       if (get_next_block(td, io_u, ddir, rw_seq_hit, &b))
                return 1;
-       }
 
        io_u->offset = b * td->o.ba[ddir];
        if (io_u->offset >= f->io_size) {