summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/tuner-xc2028.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c
index 222b93ef31c0..aa6861dcd3fd 100644
--- a/drivers/media/tuners/tuner-xc2028.c
+++ b/drivers/media/tuners/tuner-xc2028.c
@@ -376,9 +376,8 @@ static int load_all_firmwares(struct dvb_frontend *fe,
376 tuner_err("Firmware type "); 376 tuner_err("Firmware type ");
377 dump_firm_type(type); 377 dump_firm_type(type);
378 printk(KERN_CONT 378 printk(KERN_CONT
379 "(%x), id %llx is corrupted (size=%d, expected %d)\n", 379 "(%x), id %llx is corrupted (size=%zd, expected %d)\n",
380 type, (unsigned long long)id, 380 type, (unsigned long long)id, (endp - p), size);
381 (unsigned)(endp - p), size);
382 goto corrupt; 381 goto corrupt;
383 } 382 }
384 383
@@ -616,8 +615,8 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
616 } 615 }
617 616
618 if ((size + p > endp)) { 617 if ((size + p > endp)) {
619 tuner_err("missing bytes: need %d, have %d\n", 618 tuner_err("missing bytes: need %d, have %zd\n",
620 size, (int)(endp - p)); 619 size, (endp - p));
621 return -EINVAL; 620 return -EINVAL;
622 } 621 }
623 622