projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33975a4
)
usb: gadget: rndis: use %z format specifier for size_t
author
Amit Pundir
<amit.pundir@linaro.org>
Tue, 29 Dec 2015 21:35:44 +0000
(
03:05
+0530)
committer
John 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
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/rndis.c
b/drivers/usb/gadget/function/rndis.c
index c3ecff8aff8a03da420d710515ff8e16fb02d762..16ae1d28daf6755d5f348c960e54725cddd164b0 100644
(file)
--- 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:%
z
u",
skb->len, sizeof *hdr);
dev_kfree_skb_any(skb);
return -EINVAL;