mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
RDMA/rtrs: Use %pe to print errors
While printing error, replace %ld by %pe. %pe prints a string whereas %ld would print an error code. Signed-off-by: Supriti Singh <supriti.singh@ionos.com> Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com> Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com> Link: https://lore.kernel.org/r/20231120154146.920486-10-haris.iqbal@ionos.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
e76f514dc9
commit
640233258e
@ -242,8 +242,8 @@ static int create_cq(struct rtrs_con *con, int cq_vector, int nr_cqe,
|
||||
cq = ib_cq_pool_get(cm_id->device, nr_cqe, cq_vector, poll_ctx);
|
||||
|
||||
if (IS_ERR(cq)) {
|
||||
rtrs_err(con->path, "Creating completion queue failed, errno: %ld\n",
|
||||
PTR_ERR(cq));
|
||||
rtrs_err(con->path, "Creating completion queue failed, errno: %pe\n",
|
||||
cq);
|
||||
return PTR_ERR(cq);
|
||||
}
|
||||
con->cq = cq;
|
||||
|
Loading…
Reference in New Issue
Block a user