verify: fill in vc->name for pattern verify
authorJens Axboe <axboe@fb.com>
Thu, 5 Jan 2017 17:33:23 +0000 (10:33 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 5 Jan 2017 17:33:23 +0000 (10:33 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
verify.c

index e63a8392cdebc713991af1b44ab66ad56b38c8c8..02cd3a4a70a04c60d6fe28dcdab5563261a00a82 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -393,6 +393,7 @@ static int verify_io_u_pattern(struct verify_header *hdr, struct vcont *vc)
                                (unsigned char)pattern[mod],
                                bits);
                        log_err("fio: bad pattern block offset %u\n", i);
                                (unsigned char)pattern[mod],
                                bits);
                        log_err("fio: bad pattern block offset %u\n", i);
+                       vc->name = "pattern";
                        log_verify_failure(hdr, vc);
                        return EILSEQ;
                }
                        log_verify_failure(hdr, vc);
                        return EILSEQ;
                }