Skip to content

Commit f8554f5

Browse files
ps-ushankaraxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 53c9592 commit f8554f5

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/ublk

1 file changed

+1
-1
lines changed

tools/testing/selftests/ublk/kublk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static void ublk_ctrl_dump(struct ublk_dev *dev)
215215

216216
ret = ublk_ctrl_get_params(dev, &p);
217217
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));
219219
return;
220220
}
221221

0 commit comments

Comments
 (0)