From: Amit Pundir Date: Tue, 29 Dec 2015 21:35:44 +0000 (+0530) Subject: usb: gadget: rndis: use %z format specifier for size_t X-Git-Tag: firefly_0821_release~2958^2~349 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=561085a191a24e070c9eea369be47fcc97688e08;p=firefly-linux-kernel-4.4.55.git usb: gadget: rndis: use %z format specifier for size_t Use '%z' format specifier for sizeof operator instead of '%u' to fix build warnings like: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' Signed-off-by: Amit Pundir --- diff --git a/drivers/usb/gadget/function/rndis.c b/drivers/usb/gadget/function/rndis.c index c3ecff8aff8a..16ae1d28daf6 100644 --- a/drivers/usb/gadget/function/rndis.c +++ b/drivers/usb/gadget/function/rndis.c @@ -1104,7 +1104,7 @@ int rndis_rm_hdr(struct gether *port, } if (skb->len < sizeof *hdr) { - pr_err("invalid rndis pkt: skblen:%u hdr_len:%u", + pr_err("invalid rndis pkt: skblen:%u hdr_len:%zu", skb->len, sizeof *hdr); dev_kfree_skb_any(skb); return -EINVAL;