From: Amit Pundir Date: Fri, 8 Jan 2016 14:06:02 +0000 (+0530) Subject: usb: gadget: u_ether: use %z format specifier for size_t X-Git-Tag: firefly_0821_release~2958^2~346 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a6a18dc18a55798980383402051fabcca96754ee;p=firefly-linux-kernel-4.4.55.git usb: gadget: u_ether: use %z format specifier for size_t Use '%zd' format specifier for size_t type instead of '%d' to fix build warnings like: drivers/usb/gadget/function/u_ether.c: In function ‘rx_submit’: drivers/usb/gadget/function/u_ether.c:244:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] DBG(dev, "%s: size: %d\n", __func__, size); ^ Signed-off-by: Amit Pundir --- diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index 565cde9fbcf1..76b25445c6ad 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -246,7 +246,7 @@ rx_submit(struct eth_dev *dev, struct usb_request *req, gfp_t gfp_flags) if (dev->port_usb->is_fixed) size = max_t(size_t, size, dev->port_usb->fixed_out_len); - DBG(dev, "%s: size: %d\n", __func__, size); + DBG(dev, "%s: size: %zd\n", __func__, size); skb = alloc_skb(size + NET_IP_ALIGN, gfp_flags); if (skb == NULL) { DBG(dev, "no rx skb\n");