]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: ublk: kublk: fix an error log line
authorUday Shankar <ushankar@purestorage.com>
Tue, 1 Apr 2025 20:49:09 +0000 (14:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Apr 2025 20:52:38 +0000 (14:52 -0600)
commitf8554f512b8a1ecaa354fd7b1dd63906759e7335
treeed7d44c8755e1b5fab1f84c2d45055bcecb89d3b
parent53c959295bc3cccc1d9eec6711a5fcdd28602fc5
selftests: ublk: kublk: fix an error log line

When doing io_uring operations using liburing, errno is not used to
indicate errors, so the %m format specifier does not provide any
relevant information for failed io_uring commands. Fix a log line
emitted on get_params failure to translate the error code returned in
the cqe->res field instead.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250401-ublk_selftests-v1-2-98129c9bc8bb@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/kublk.c