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;
}
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;
}