From adfa7b7cc6db1ce9ccc7c8a9df9a6d719b8da280 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 13 Jan 2023 14:36:26 -0800 Subject: [PATCH] zbd: Make an error message more detailed If zone data is invalid, report in detail why it is invalid. Signed-off-by: Bart Van Assche --- zbd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zbd.c b/zbd.c index 1d96bf17..d6f8f800 100644 --- a/zbd.c +++ b/zbd.c @@ -848,8 +848,9 @@ static int parse_zone_info(struct thread_data *td, struct fio_file *f) p->cond = z->cond; if (j > 0 && p->start != p[-1].start + zone_size) { - log_info("%s: invalid zone data\n", - f->file_name); + log_info("%s: invalid zone data [%d:%d]: %"PRIu64" + %"PRIu64" != %"PRIu64"\n", + f->file_name, j, i, + p[-1].start, zone_size, p->start); ret = -EINVAL; goto out; } -- 2.25.1