Commit 6ec12988 authored by Gianluca Gennari's avatar Gianluca Gennari Committed by Mauro Carvalho Chehab

[media] af9035: fix warning

On a 32 bit system:

af9035.c: In function 'af9035_download_firmware':
af9035.c:446:3: warning: format '%lu' expects argument of type 'long unsigned
int', but argument 3 has type 'unsigned int' [-Wformat]

%zu avoids any warning on both 32 and 64 bit systems.
Signed-off-by: default avatarGianluca Gennari <gennarone@gmail.com>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b1a9599a
......@@ -440,7 +440,7 @@ static int af9035_download_firmware(struct usb_device *udev,
i -= hdr_data_len + HDR_SIZE;
pr_debug("%s: data uploaded=%lu\n", __func__, fw->size - i);
pr_debug("%s: data uploaded=%zu\n", __func__, fw->size - i);
}
/* firmware loaded, request boot */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment