Skip to content

Commit bee024d

Browse files
Guoqing Jiangrleon
authored andcommitted
RDMA/siw: Correct wrong debug message
We need to print num_sle first then pbl->max_buf per the condition. Also replace mem->pbl with pbl while at it. Fixes: 303ae1c ("rdma/siw: application interface") Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev> Link: https://lore.kernel.org/r/20230821133255.31111-3-guoqing.jiang@linux.dev Acked-by: Bernard Metzler <bmt@zurich.ibm.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent b056327 commit bee024d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/sw/siw/siw_verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle,
14941494

14951495
if (pbl->max_buf < num_sle) {
14961496
siw_dbg_mem(mem, "too many SGE's: %d > %d\n",
1497-
mem->pbl->max_buf, num_sle);
1497+
num_sle, pbl->max_buf);
14981498
return -ENOMEM;
14991499
}
15001500
for_each_sg(sl, slp, num_sle, i) {

0 commit comments

Comments
 (0)