aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-24 19:36:07 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-26 05:51:00 -0400
commit7983b773bad92fcc790152fe6db616644db1dfda (patch)
tree886b26eb358e0e00714e36666d5f722339b04d02 /drivers/media
parent339f06c5d354c4c89814f11d0c3393f198b3dd00 (diff)
[media] usb drivers: use %zu instead of %zd
size_t is unsigned. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/usb/cx231xx/cx231xx-avcore.c2
-rw-r--r--drivers/media/usb/em28xx/em28xx-video.c4
-rw-r--r--drivers/media/usb/siano/smsusb.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-avcore.c b/drivers/media/usb/cx231xx/cx231xx-avcore.c
index 51872b9f75a1..40a69879fc0a 100644
--- a/drivers/media/usb/cx231xx/cx231xx-avcore.c
+++ b/drivers/media/usb/cx231xx/cx231xx-avcore.c
@@ -1595,7 +1595,7 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq,
1595 if_freq = 16000000; 1595 if_freq = 16000000;
1596 } 1596 }
1597 1597
1598 cx231xx_info("Enter IF=%zd\n", 1598 cx231xx_info("Enter IF=%zu\n",
1599 ARRAY_SIZE(Dif_set_array)); 1599 ARRAY_SIZE(Dif_set_array));
1600 for (i = 0; i < ARRAY_SIZE(Dif_set_array); i++) { 1600 for (i = 0; i < ARRAY_SIZE(Dif_set_array); i++) {
1601 if (Dif_set_array[i].if_freq == if_freq) { 1601 if (Dif_set_array[i].if_freq == if_freq) {
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index 3284de99fc99..0ce816352d51 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -481,7 +481,7 @@ static void em28xx_copy_video(struct em28xx *dev,
481 lencopy = lencopy > remain ? remain : lencopy; 481 lencopy = lencopy > remain ? remain : lencopy;
482 482
483 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) { 483 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) {
484 em28xx_isocdbg("Overflow of %zi bytes past buffer end (1)\n", 484 em28xx_isocdbg("Overflow of %zu bytes past buffer end (1)\n",
485 ((char *)startwrite + lencopy) - 485 ((char *)startwrite + lencopy) -
486 ((char *)buf->vb_buf + buf->length)); 486 ((char *)buf->vb_buf + buf->length));
487 remain = (char *)buf->vb_buf + buf->length - 487 remain = (char *)buf->vb_buf + buf->length -
@@ -507,7 +507,7 @@ static void em28xx_copy_video(struct em28xx *dev,
507 507
508 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + 508 if ((char *)startwrite + lencopy > (char *)buf->vb_buf +
509 buf->length) { 509 buf->length) {
510 em28xx_isocdbg("Overflow of %zi bytes past buffer end" 510 em28xx_isocdbg("Overflow of %zu bytes past buffer end"
511 "(2)\n", 511 "(2)\n",
512 ((char *)startwrite + lencopy) - 512 ((char *)startwrite + lencopy) -
513 ((char *)buf->vb_buf + buf->length)); 513 ((char *)buf->vb_buf + buf->length));
diff --git a/drivers/media/usb/siano/smsusb.c b/drivers/media/usb/siano/smsusb.c
index 89c86ee2b225..94e10b10b66e 100644
--- a/drivers/media/usb/siano/smsusb.c
+++ b/drivers/media/usb/siano/smsusb.c
@@ -277,14 +277,14 @@ static int smsusb1_load_firmware(struct usb_device *udev, int id, int board_id)
277 rc = usb_bulk_msg(udev, usb_sndbulkpipe(udev, 2), 277 rc = usb_bulk_msg(udev, usb_sndbulkpipe(udev, 2),
278 fw_buffer, fw->size, &dummy, 1000); 278 fw_buffer, fw->size, &dummy, 1000);
279 279
280 sms_info("sent %zd(%d) bytes, rc %d", fw->size, dummy, rc); 280 sms_info("sent %zu(%d) bytes, rc %d", fw->size, dummy, rc);
281 281
282 kfree(fw_buffer); 282 kfree(fw_buffer);
283 } else { 283 } else {
284 sms_err("failed to allocate firmware buffer"); 284 sms_err("failed to allocate firmware buffer");
285 rc = -ENOMEM; 285 rc = -ENOMEM;
286 } 286 }
287 sms_info("read FW %s, size=%zd", fw_filename, fw->size); 287 sms_info("read FW %s, size=%zu", fw_filename, fw->size);
288 288
289 release_firmware(fw); 289 release_firmware(fw);
290 290