usb: gadget: rndis: use %z format specifier for size_t
authorAmit Pundir <amit.pundir@linaro.org>
Tue, 29 Dec 2015 21:35:44 +0000 (03:05 +0530)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:16 +0000 (13:52 -0800)
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 <amit.pundir@linaro.org>
drivers/usb/gadget/function/rndis.c

index c3ecff8aff8a03da420d710515ff8e16fb02d762..16ae1d28daf6755d5f348c960e54725cddd164b0 100644 (file)
@@ -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;