[PATCH] When logging to a file, stderr should go both to stderr and file
diff --git a/ioengines.c b/ioengines.c
index c94fcb3..fe6136f 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -610,7 +610,7 @@
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;
}
@@ -718,7 +718,7 @@
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;
}