sync: use io_u_log_error() for more detailed error messages
authorJens Axboe <axboe@fb.com>
Fri, 5 Dec 2014 16:35:19 +0000 (09:35 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 5 Dec 2014 16:35:19 +0000 (09:35 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/sync.c

index 41612dfa8c31ba0f8fc81436d162fee1ece500da..48aafff8f153772804095edd541ce2858f225876 100644 (file)
@@ -63,8 +63,10 @@ static int fio_io_end(struct thread_data *td, struct io_u *io_u, int ret)
                        io_u->error = errno;
        }
 
-       if (io_u->error)
+       if (io_u->error) {
+               io_u_log_error(td, io_u);
                td_verror(td, io_u->error, "xfer");
+       }
 
        return FIO_Q_COMPLETED;
 }