public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>,
	Felipe Balbi <balbi@ti.com>, lud <linux-usb@vger.kernel.org>
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH -next] usb/gadget: fix langwell printk formats
Date: Sun, 10 Jul 2011 11:41:27 -0700	[thread overview]
Message-ID: <20110710114127.ebb0d803.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20110707172544.867b980a1196db005b577c14@canb.auug.org.au>

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix printk formats to use %zu for size_t args, to fix these
build warnings:

drivers/usb/gadget/langwell_udc.c:3274: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
drivers/usb/gadget/langwell_udc.c:3289: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
drivers/usb/gadget/langwell_udc.c:3473: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
drivers/usb/gadget/langwell_udc.c:3487: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/usb/gadget/langwell_udc.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- linux-next-20110706.orig/drivers/usb/gadget/langwell_udc.c
+++ linux-next-20110706/drivers/usb/gadget/langwell_udc.c
@@ -3271,7 +3271,7 @@ static int langwell_udc_probe(struct pci
 
 	/* allocate device dQH memory */
 	size = dev->ep_max * sizeof(struct langwell_dqh);
-	dev_vdbg(&dev->pdev->dev, "orig size = %d\n", size);
+	dev_vdbg(&dev->pdev->dev, "orig size = %zu\n", size);
 	if (size < DQH_ALIGNMENT)
 		size = DQH_ALIGNMENT;
 	else if ((size % DQH_ALIGNMENT) != 0) {
@@ -3286,7 +3286,7 @@ static int langwell_udc_probe(struct pci
 		goto error;
 	}
 	dev->ep_dqh_size = size;
-	dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %d\n", dev->ep_dqh_size);
+	dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %zu\n", dev->ep_dqh_size);
 
 	/* initialize ep0 status request structure */
 	dev->status_req = kzalloc(sizeof(struct langwell_request), GFP_KERNEL);
@@ -3470,7 +3470,7 @@ static int langwell_udc_resume(struct pc
 
 	/* allocate device dQH memory */
 	size = dev->ep_max * sizeof(struct langwell_dqh);
-	dev_vdbg(&dev->pdev->dev, "orig size = %d\n", size);
+	dev_vdbg(&dev->pdev->dev, "orig size = %zu\n", size);
 	if (size < DQH_ALIGNMENT)
 		size = DQH_ALIGNMENT;
 	else if ((size % DQH_ALIGNMENT) != 0) {
@@ -3484,7 +3484,7 @@ static int langwell_udc_resume(struct pc
 		return -ENOMEM;
 	}
 	dev->ep_dqh_size = size;
-	dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %d\n", dev->ep_dqh_size);
+	dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %zu\n", dev->ep_dqh_size);
 
 	/* create dTD dma_pool resource */
 	dev->dtd_pool = dma_pool_create("langwell_dtd",

  parent reply	other threads:[~2011-07-10 18:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-07  7:25 linux-next: Tree for July 7 Stephen Rothwell
2011-07-07 15:12 ` linux-next: Tree for July 7 (net/af_packet) Randy Dunlap
2011-07-07 15:18   ` David Miller
2011-07-07 15:40     ` Randy Dunlap
2011-07-07 17:06     ` Mike Frysinger
2011-07-07 15:55 ` linux-next: Tree for July 7 (i915 + gma500) Randy Dunlap
2011-07-10 18:41 ` Randy Dunlap [this message]
     [not found]   ` <20110710114127.ebb0d803.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2011-07-11  6:30     ` [PATCH -next] usb/gadget: fix langwell printk formats Felipe Balbi
2011-07-10 18:41 ` [PATCH -next] usb/gadget: fix net2272 " Randy Dunlap
2011-07-11  6:30   ` Felipe Balbi

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20110710114127.ebb0d803.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=balbi@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox