projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] When logging to a file, stderr should go both to stderr and file
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index c94fcb30c23b87ccea185b88c642081864017111..fe6136f775ad206fd59bd1fedee34345624d769c 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-610,7
+610,7
@@
static int fio_sgio_prep(struct thread_data *td, struct io_u *io_u)
int nr_blocks, lba;
if (io_u->buflen & (sd->bs - 1)) {
int nr_blocks, lba;
if (io_u->buflen & (sd->bs - 1)) {
-
fprintf(f_err,
"read/write not sector aligned\n");
+
log_err(
"read/write not sector aligned\n");
return EINVAL;
}
return EINVAL;
}
@@
-718,7
+718,7
@@
int fio_sgio_init(struct thread_data *td)
if (ret)
return ret;
} else {
if (ret)
return ret;
} else {
-
fprintf(f_err,
"ioengine sgio only works on block devices\n");
+
log_err(
"ioengine sgio only works on block devices\n");
return 1;
}
return 1;
}