projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move setup_rate() out of log.c
[fio.git]
/
verify.c
diff --git
a/verify.c
b/verify.c
index 6cbd0add35d2683186771a20f8b3079cb8079f5b..a9441b4179615c83c43056e134a1c92b10c180b8 100644
(file)
--- 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++)
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)
}
static int verify_io_u_crc32(struct verify_header *hdr, struct io_u *io_u)
@@
-85,7
+85,7
@@
int verify_io_u(struct io_u *io_u)
if (hdr->fio_magic != FIO_HDR_MAGIC) {
log_err("Bad verify header %x\n", hdr->fio_magic);
if (hdr->fio_magic != FIO_HDR_MAGIC) {
log_err("Bad verify header %x\n", hdr->fio_magic);
- return
1
;
+ return
EIO
;
}
if (hdr->verify_type == VERIFY_MD5)
}
if (hdr->verify_type == VERIFY_MD5)
@@
-97,7
+97,10
@@
int verify_io_u(struct io_u *io_u)
ret = 1;
}
ret = 1;
}
- return ret;
+ if (ret)
+ return EIO;
+
+ return 0;
}
static void fill_crc32(struct verify_header *hdr, void *p, unsigned int len)
}
static void fill_crc32(struct verify_header *hdr, void *p, unsigned int len)