X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=7cbdb915a19629fcbd3b500b9255c918bfbd6dd1;hp=2adaf258d3912bc33599ca550079f9769c3f70e8;hb=709c8313cf171e63c92740c6b2f38041cb11c722;hpb=173375c210386387624779febf287ead301fda01 diff --git a/io_u.c b/io_u.c index 2adaf258..7cbdb915 100644 --- a/io_u.c +++ b/io_u.c @@ -1532,15 +1532,12 @@ void io_u_log_error(struct thread_data *td, struct io_u *io_u) if (td_non_fatal_error(td, eb, io_u->error) && !td->o.error_dump) return; - log_err("fio: io_u error"); - - if (io_u->file) - log_err(" on file %s", io_u->file->file_name); - - log_err(": %s\n", strerror(io_u->error)); - - log_err(" %s offset=%llu, buflen=%lu\n", io_ddir_name(io_u->ddir), - io_u->offset, io_u->xfer_buflen); + log_err("fio: io_u error%s%s: %s: %s offset=%llu, buflen=%lu\n", + io_u->file ? " on file " : "", + io_u->file ? io_u->file->file_name : "", + strerror(io_u->error), + io_ddir_name(io_u->ddir), + io_u->offset, io_u->xfer_buflen); if (!td->error) td_verror(td, io_u->error, "io_u error");