usb: gadget: atmel: fix build warning
authorFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 20:34:45 +0000 (15:34 -0500)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 20:38:30 +0000 (15:38 -0500)
This patch fixes the following build warning:

drivers/usb/gadget/udc/atmel_usba_udc.c:707:2: warning: format ‘%x’
expects argument of type ‘unsigned int’, but argument 4 has type
‘dma_addr_t’ [-Wformat=]

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c

index 4c01953..5437346 100644 (file)
@@ -704,8 +704,8 @@ static int queue_dma(struct usba_udc *udc, struct usba_ep *ep,
        unsigned long flags;
        int ret;
 
-       DBG(DBG_DMA, "%s: req l/%u d/%08x %c%c%c\n",
-               ep->ep.name, req->req.length, req->req.dma,
+       DBG(DBG_DMA, "%s: req l/%u d/%pad %c%c%c\n",
+               ep->ep.name, req->req.length, &req->req.dma,
                req->req.zero ? 'Z' : 'z',
                req->req.short_not_ok ? 'S' : 's',
                req->req.no_interrupt ? 'I' : 'i');