X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=f748065d7fc031b66098334aef419654b5ff25c9;hb=ee3dcd9519760e0f8fb1488fdbb2b6d00af638df;hp=643e782010648bd43c53f827a97eb5437194d177;hpb=a7dfe862c2e3fe72b8db6a6e67302048d3731c6d;p=fio.git diff --git a/verify.c b/verify.c index 643e7820..f748065d 100644 --- a/verify.c +++ b/verify.c @@ -38,8 +38,8 @@ static void hexdump(void *buffer, int len) int i; for (i = 0; i < len; i++) - fprintf(f_out, "%02x", p[i]); - fprintf(f_out, "\n"); + log_info("%02x", p[i]); + log_info("\n"); } static int verify_io_u_crc32(struct verify_header *hdr, struct io_u *io_u) @@ -131,7 +131,7 @@ void populate_verify_io_u(struct thread_data *td, struct io_u *io_u) p += sizeof(hdr); fill_random_bytes(td, p, io_u->buflen - sizeof(hdr)); - if (td->verify == VERIFY_MD5) { + if (td->o.verify == VERIFY_MD5) { fill_md5(&hdr, p, io_u->buflen - sizeof(hdr)); hdr.verify_type = VERIFY_MD5; } else {