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 net2272 printk formats
Date: Sun, 10 Jul 2011 11:41:47 -0700	[thread overview]
Message-ID: <20110710114147.c4ae629f.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20110707172544.867b980a1196db005b577c14@canb.auug.org.au>

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

Fix printk formats for dma_addr_t:

drivers/usb/gadget/net2272.c:740: warning: format '%08x' expects type 'unsigned int', but argument 6 has type 'dma_addr_t'
drivers/usb/gadget/net2272.c:859: warning: format '%08x' expects type 'unsigned int', but argument 8 has type 'dma_addr_t'

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

--- linux-next-20110706.orig/drivers/usb/gadget/net2272.c
+++ linux-next-20110706/drivers/usb/gadget/net2272.c
@@ -737,8 +737,8 @@ net2272_kick_dma(struct net2272_ep *ep, 
 	if (req->req.length & 1)
 		return -EINVAL;
 
-	dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08x\n",
-		ep->ep.name, req, req->req.dma);
+	dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08llx\n",
+		ep->ep.name, req, (unsigned long long)(req->req.dma));
 
 	net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS);
 
@@ -856,9 +856,9 @@ net2272_queue(struct usb_ep *_ep, struct
 		req->mapped = 1;
 	}
 
-	dev_vdbg(dev->dev, "%s queue req %p, len %d buf %p dma %08x %s\n",
+	dev_vdbg(dev->dev, "%s queue req %p, len %d buf %p dma %08llx %s\n",
 		_ep->name, _req, _req->length, _req->buf,
-		_req->dma, _req->zero ? "zero" : "!zero");
+		(unsigned long long)(_req->dma), _req->zero ? "zero" : "!zero");
 
 	spin_lock_irqsave(&dev->lock, flags);
 

  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 ` [PATCH -next] usb/gadget: fix langwell printk formats Randy Dunlap
     [not found]   ` <20110710114127.ebb0d803.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2011-07-11  6:30     ` Felipe Balbi
2011-07-10 18:41 ` Randy Dunlap [this message]
2011-07-11  6:30   ` [PATCH -next] usb/gadget: fix net2272 " 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=20110710114147.c4ae629f.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