Commit 7983b773 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] usb drivers: use %zu instead of %zd

size_t is unsigned.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 339f06c5
...@@ -1595,7 +1595,7 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq, ...@@ -1595,7 +1595,7 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq,
if_freq = 16000000; if_freq = 16000000;
} }
cx231xx_info("Enter IF=%zd\n", cx231xx_info("Enter IF=%zu\n",
ARRAY_SIZE(Dif_set_array)); ARRAY_SIZE(Dif_set_array));
for (i = 0; i < ARRAY_SIZE(Dif_set_array); i++) { for (i = 0; i < ARRAY_SIZE(Dif_set_array); i++) {
if (Dif_set_array[i].if_freq == if_freq) { if (Dif_set_array[i].if_freq == if_freq) {
......
...@@ -481,7 +481,7 @@ static void em28xx_copy_video(struct em28xx *dev, ...@@ -481,7 +481,7 @@ static void em28xx_copy_video(struct em28xx *dev,
lencopy = lencopy > remain ? remain : lencopy; lencopy = lencopy > remain ? remain : lencopy;
if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) { if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) {
em28xx_isocdbg("Overflow of %zi bytes past buffer end (1)\n", em28xx_isocdbg("Overflow of %zu bytes past buffer end (1)\n",
((char *)startwrite + lencopy) - ((char *)startwrite + lencopy) -
((char *)buf->vb_buf + buf->length)); ((char *)buf->vb_buf + buf->length));
remain = (char *)buf->vb_buf + buf->length - remain = (char *)buf->vb_buf + buf->length -
...@@ -507,7 +507,7 @@ static void em28xx_copy_video(struct em28xx *dev, ...@@ -507,7 +507,7 @@ static void em28xx_copy_video(struct em28xx *dev,
if ((char *)startwrite + lencopy > (char *)buf->vb_buf + if ((char *)startwrite + lencopy > (char *)buf->vb_buf +
buf->length) { buf->length) {
em28xx_isocdbg("Overflow of %zi bytes past buffer end" em28xx_isocdbg("Overflow of %zu bytes past buffer end"
"(2)\n", "(2)\n",
((char *)startwrite + lencopy) - ((char *)startwrite + lencopy) -
((char *)buf->vb_buf + buf->length)); ((char *)buf->vb_buf + buf->length));
......
...@@ -277,14 +277,14 @@ static int smsusb1_load_firmware(struct usb_device *udev, int id, int board_id) ...@@ -277,14 +277,14 @@ static int smsusb1_load_firmware(struct usb_device *udev, int id, int board_id)
rc = usb_bulk_msg(udev, usb_sndbulkpipe(udev, 2), rc = usb_bulk_msg(udev, usb_sndbulkpipe(udev, 2),
fw_buffer, fw->size, &dummy, 1000); fw_buffer, fw->size, &dummy, 1000);
sms_info("sent %zd(%d) bytes, rc %d", fw->size, dummy, rc); sms_info("sent %zu(%d) bytes, rc %d", fw->size, dummy, rc);
kfree(fw_buffer); kfree(fw_buffer);
} else { } else {
sms_err("failed to allocate firmware buffer"); sms_err("failed to allocate firmware buffer");
rc = -ENOMEM; rc = -ENOMEM;
} }
sms_info("read FW %s, size=%zd", fw_filename, fw->size); sms_info("read FW %s, size=%zu", fw_filename, fw->size);
release_firmware(fw); release_firmware(fw);
......
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