[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200322044952.GA17141@Mani-XPS-13-9360>
Date: Sun, 22 Mar 2020 10:19:52 +0530
From: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Hemant Kumar <hemantk@...eaurora.org>,
linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH -next/-mmotm] bus/mhi: fix printk format for size_t
On Sat, Mar 21, 2020 at 09:17:52PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@...radead.org>
>
> 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@...radead.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Thanks,
Mani
> Cc: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
> Cc: Hemant Kumar <hemantk@...eaurora.org>
> Cc: linux-arm-msm@...r.kernel.org
> ---
> 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);
> }
>
>
Powered by blists - more mailing lists