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

Commit 35f30f36 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] dvb-frontends: use %zu instead of %zd



size_t is unsigned.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 03ce7816
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -639,7 +639,7 @@ static int bcm3510_download_firmware(struct dvb_frontend* fe)
		err("could not load firmware (%s): %d",BCM3510_DEFAULT_FIRMWARE,ret);
		err("could not load firmware (%s): %d",BCM3510_DEFAULT_FIRMWARE,ret);
		return ret;
		return ret;
	}
	}
	deb_info("got firmware: %zd\n",fw->size);
	deb_info("got firmware: %zu\n", fw->size);


	b = fw->data;
	b = fw->data;
	for (i = 0; i < fw->size;) {
	for (i = 0; i < fw->size;) {
+1 −1
Original line number Original line Diff line number Diff line
@@ -103,7 +103,7 @@ static int mt312_write(struct mt312_state *state, const enum mt312_reg_addr reg,


	if (1 + count > sizeof(buf)) {
	if (1 + count > sizeof(buf)) {
		printk(KERN_WARNING
		printk(KERN_WARNING
		       "mt312: write: len=%zd is too big!\n", count);
		       "mt312: write: len=%zu is too big!\n", count);
		return -EINVAL;
		return -EINVAL;
	}
	}


+1 −1
Original line number Original line Diff line number Diff line
@@ -111,7 +111,7 @@ static int or51211_load_firmware (struct dvb_frontend* fe,
	u8 tudata[585];
	u8 tudata[585];
	int i;
	int i;


	dprintk("Firmware is %zd bytes\n",fw->size);
	dprintk("Firmware is %zu bytes\n", fw->size);


	/* Get eprom data */
	/* Get eprom data */
	tudata[0] = 17;
	tudata[0] = 17;
+1 −1
Original line number Original line Diff line number Diff line
@@ -111,7 +111,7 @@ static int zl10039_write(struct zl10039_state *state,


	if (1 + count > sizeof(buf)) {
	if (1 + count > sizeof(buf)) {
		printk(KERN_WARNING
		printk(KERN_WARNING
		       "%s: i2c wr reg=%04x: len=%zd is too big!\n",
		       "%s: i2c wr reg=%04x: len=%zu is too big!\n",
		       KBUILD_MODNAME, reg, count);
		       KBUILD_MODNAME, reg, count);
		return -EINVAL;
		return -EINVAL;
	}
	}