Also expand the error print a bit.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
if (ret < 0 || td->error) {
int err;
- if (!td->o.continue_on_error);
- return 0;
+ if (!td->o.continue_on_error)
+ return 1;
if (ret < 0)
err = -ret;
#define MAX_JOBS (1024)
-#define td_non_fatal_error(e) ((e) == -EIO || (e) == EILSEQ)
+#define td_non_fatal_error(e) ((e) == EIO || (e) == EILSEQ)
static inline void update_error_count(struct thread_data *td, int err)
{
stat_calc_lat_m(ts, io_u_lat_m);
show_latencies(io_u_lat_u, io_u_lat_m);
if (ts->continue_on_error) {
- log_info(" errors: total=%lu, first_error=%d\n",
- ts->total_err_count, ts->first_error);
+ log_info(" errors : total=%lu, first_error=%d/<%s>\n",
+ ts->total_err_count,
+ ts->first_error,
+ strerror(ts->first_error));
}
}