From: Jakub Sitnicki Date: Tue, 13 Dec 2016 16:27:24 +0000 (+0100) Subject: Change misleading error message for invalid size= value X-Git-Tag: fio-2.16~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=13e0f06b805eb0bb3a100ed710c7da18684c8950;p=fio.git Change misleading error message for invalid size= value The error message refers to the IO size, yet another parameter, but we actually compare the size parameter value against the block size. Change the message to reflect the code, and make it easier for the user to see what values are we comparing. Signed-off-by: Jakub Sitnicki Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 382fa1ff..36feb513 100644 --- a/init.c +++ b/init.c @@ -822,7 +822,8 @@ static int fixup_options(struct thread_data *td) * If size is set but less than the min block size, complain */ if (o->size && o->size < td_min_bs(td)) { - log_err("fio: size too small, must be larger than the IO size: %llu\n", (unsigned long long) o->size); + log_err("fio: size too small, must not be less than minimum block size: %llu < %u\n", + (unsigned long long) o->size, td_min_bs(td)); ret = 1; }