Linux-ARM-MSM Archive on
 help / color / Atom feed
From: Randy Dunlap <>
To: LKML <>,
	Andrew Morton <>,
	Stephen Rothwell <>,
	Manivannan Sadhasivam <>,
	Hemant Kumar <>,
Subject: [PATCH -next/-mmotm] bus/mhi: fix printk format for size_t
Date: Sat, 21 Mar 2020 21:17:52 -0700
Message-ID: <> (raw)

From: Randy Dunlap <>

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 <>
Cc: Manivannan Sadhasivam <>
Cc: Hemant Kumar <>
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
-	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);

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-22  4:17 Randy Dunlap [this message]
2020-03-22  4:49 ` Manivannan Sadhasivam
2020-03-24  2:24   ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-ARM-MSM Archive on

Archives are clonable:
	git clone --mirror linux-arm-msm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-msm linux-arm-msm/ \
	public-inbox-index linux-arm-msm

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone