Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Uday Shankar and committed by
Jens Axboe
f8554f51 53c95929

+1 -1
+1 -1
tools/testing/selftests/ublk/kublk.c
··· 215 215 216 216 ret = ublk_ctrl_get_params(dev, &p); 217 217 if (ret < 0) { 218 - ublk_err("failed to get params %m\n"); 218 + ublk_err("failed to get params %d %s\n", ret, strerror(-ret)); 219 219 return; 220 220 } 221 221