diff mbox series

mpi3mr: Fix wrong format specifiers

Message ID 20231206124216.16960-1-chandrakanth.patil@broadcom.com (mailing list archive)
State Superseded
Headers show
Series mpi3mr: Fix wrong format specifiers | expand

Commit Message

Chandrakanth Patil Dec. 6, 2023, 12:42 p.m. UTC
Fixing format specifier warnings for dma_addr_t and size_t types.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312061817.PnTCKZE3-lkp@intel.com/
Signed-off-by: Chandrakanth patil <chandrakanth.patil@broadcom.com>

---
 drivers/scsi/mpi3mr/mpi3mr_app.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/mpi3mr/mpi3mr_app.c b/drivers/scsi/mpi3mr/mpi3mr_app.c
index 4b93b7440da6..743db3bad2bd 100644
--- a/drivers/scsi/mpi3mr/mpi3mr_app.c
+++ b/drivers/scsi/mpi3mr/mpi3mr_app.c
@@ -948,7 +948,7 @@  static int mpi3mr_build_nvme_prp(struct mpi3mr_ioc *mrioc,
 		if (dma_addr & page_mask) {
 			dprint_bsg_err(mrioc,
 				       "%s:dma_addr 0x%llx is not aligned with page size 0x%x\n",
-				       __func__,  dma_addr, dev_pgsz);
+				       __func__, (unsigned long long)dma_addr, dev_pgsz);
 			return -1;
 		}
 	}
@@ -1110,7 +1110,7 @@  static int mpi3mr_build_nvme_prp(struct mpi3mr_ioc *mrioc,
 				if ((++desc_count) >=
 				   drv_buf_iter->num_dma_desc) {
 					dprint_bsg_err(mrioc,
-						       "%s: Invalid len %ld while building PRP\n",
+						       "%s: Invalid len %zu while building PRP\n",
 						       __func__, length);
 					goto err_out;
 				}