From: Igor Pylypiv Date: Thu, 28 Sep 2023 23:37:14 +0000 (-0700) Subject: verify: Fix the bad pattern block offset value X-Git-Tag: fio-3.36~9^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=242c63dbbf104d2b0dd03fb2966ebd8ff9a6e2a3;p=fio.git verify: Fix the bad pattern block offset value We offset buf by header_size for pattern verification. Add header_size to the mismatched buf offset to get the correct block offset value. Signed-off-by: Igor Pylypiv --- diff --git a/verify.c b/verify.c index f7355f30..78f333e6 100644 --- a/verify.c +++ b/verify.c @@ -398,7 +398,8 @@ static int verify_io_u_pattern(struct verify_header *hdr, struct vcont *vc) (unsigned char)buf[i], (unsigned char)pattern[mod], bits); - log_err("fio: bad pattern block offset %u\n", i); + log_err("fio: bad pattern block offset %u\n", + i + header_size); vc->name = "pattern"; log_verify_failure(hdr, vc); return EILSEQ;