[PATCH -next/-mmotm] bus/mhi: fix printk format for size_t
From: Randy Dunlap
Date: Sun Mar 22 2020 - 00:27:47 EST
From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Fix printk format warning by using %z for size_t modifier:
../drivers/bus/mhi/core/boot.c: In function âmhi_rddm_prepareâ:
../drivers/bus/mhi/core/boot.c:55:15: warning: format â%lxâ expects argument of type âlong unsigned intâ, but argument 5 has type âsize_t {aka unsigned int}â [-Wformat=]
dev_dbg(dev, "Address: %p and len: 0x%lx sequence: %u\n",
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
Cc: Hemant Kumar <hemantk@xxxxxxxxxxxxxx>
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
---
Found in mmotm, but in its linux-next.patch file.
drivers/bus/mhi/core/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- mmotm-2020-0321-1517.orig/drivers/bus/mhi/core/boot.c
+++ mmotm-2020-0321-1517/drivers/bus/mhi/core/boot.c
@@ -52,7 +52,7 @@ void mhi_rddm_prepare(struct mhi_control
BHIE_RXVECDB_SEQNUM_BMSK, BHIE_RXVECDB_SEQNUM_SHFT,
sequence_id);
- dev_dbg(dev, "Address: %p and len: 0x%lx sequence: %u\n",
+ dev_dbg(dev, "Address: %p and len: 0x%zx sequence: %u\n",
&mhi_buf->dma_addr, mhi_buf->len, sequence_id);
}