From 629eda50301dd471390c325891c1c1447282fbba Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 22 Feb 2023 13:40:30 -0800 Subject: [PATCH] io_u: Add a debug message in fill_io_u() A debug message is logged before each 'return io_u_eof' statement in fill_io_u() except one. Hence add a debug message in front of that one return statement. Signed-off-by: Bart Van Assche --- io_u.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io_u.c b/io_u.c index eb617e64..d50d8465 100644 --- a/io_u.c +++ b/io_u.c @@ -984,8 +984,10 @@ static int fill_io_u(struct thread_data *td, struct io_u *io_u) offset = io_u->offset; if (td->o.zone_mode == ZONE_MODE_ZBD) { ret = zbd_adjust_block(td, io_u); - if (ret == io_u_eof) + if (ret == io_u_eof) { + dprint(FD_IO, "zbd_adjust_block() returned io_u_eof\n"); return 1; + } } if (io_u->offset + io_u->buflen > io_u->file->real_file_size) { -- 2.25.1