mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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 <amit.pundir@linaro.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user