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

RDMA/iser: Use iser_err instead of pr_err for logging

Make sure all the debug prints in ib_iser module use the common driver
logger.

Link: https://lore.kernel.org/r/1570366580-24097-1-git-send-email-maxg@mellanox.com
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

authored by

Max Gurtovoy and committed by
Jason Gunthorpe
3466c060 39c48c51

+2 -2
+2 -2
drivers/infiniband/ulp/iser/iser_verbs.c
··· 1081 1081 ret = ib_check_mr_status(desc->rsc.sig_mr, 1082 1082 IB_MR_CHECK_SIG_STATUS, &mr_status); 1083 1083 if (ret) { 1084 - pr_err("ib_check_mr_status failed, ret %d\n", ret); 1084 + iser_err("ib_check_mr_status failed, ret %d\n", ret); 1085 1085 /* Not a lot we can do, return ambiguous guard error */ 1086 1086 *sector = 0; 1087 1087 return 0x1; ··· 1093 1093 sector_div(sector_off, sector_size + 8); 1094 1094 *sector = scsi_get_lba(iser_task->sc) + sector_off; 1095 1095 1096 - pr_err("PI error found type %d at sector %llx " 1096 + iser_err("PI error found type %d at sector %llx " 1097 1097 "expected %x vs actual %x\n", 1098 1098 mr_status.sig_err.err_type, 1099 1099 (unsigned long long)*sector,