Re: [PATCH] usb: gadget: atmel: fix build warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 26/05/2015 22:38, Felipe Balbi a écrit :
> 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@xxxxxx>

Acked-by: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
Thanks Felipe!

Bye,

> ---
>  drivers/usb/gadget/udc/atmel_usba_udc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c
> index 4c01953a0869..5437346908e7 100644
> --- a/drivers/usb/gadget/udc/atmel_usba_udc.c
> +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c
> @@ -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');
> 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux