Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfa746b3 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] fmdrv_common.c: fix compiler warning



drivers/media/radio/wl128x/fmdrv_common.c: In function 'recv_tasklet':
drivers/media/radio/wl128x/fmdrv_common.c:274:4: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'

The result of sizeof() should be printed with %zu.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3920d6b3
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -271,8 +271,8 @@ static void recv_tasklet(unsigned long arg)
	/* Process all packets in the RX queue */
	/* Process all packets in the RX queue */
	while ((skb = skb_dequeue(&fmdev->rx_q))) {
	while ((skb = skb_dequeue(&fmdev->rx_q))) {
		if (skb->len < sizeof(struct fm_event_msg_hdr)) {
		if (skb->len < sizeof(struct fm_event_msg_hdr)) {
			fmerr("skb(%p) has only %d bytes"
			fmerr("skb(%p) has only %d bytes, "
				"atleast need %d bytes to decode\n", skb,
				"at least need %zu bytes to decode\n", skb,
				skb->len, sizeof(struct fm_event_msg_hdr));
				skb->len, sizeof(struct fm_event_msg_hdr));
			kfree_skb(skb);
			kfree_skb(skb);
			continue;
			continue;