From: David Nellans Date: Thu, 23 Sep 2010 06:48:15 +0000 (+0200) Subject: Kill leftover debug printf() and re-format a long line X-Git-Tag: fio-1.44-rc1~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=0508320e7b175baf336b1f559e13810e69eecb10 Kill leftover debug printf() and re-format a long line Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index a630817f..baa961b1 100644 --- 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) {