[media] pci drivers: use %zu instead of %zd
size_t is unsigned. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
35f30f36a7
commit
339f06c5d3
|
@ -80,7 +80,7 @@ void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data,
|
||||||
int period_elapsed = 0;
|
int period_elapsed = 0;
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zd\n", cxsc,
|
dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zu\n", cxsc,
|
||||||
pcm_data, num_bytes);
|
pcm_data, num_bytes);
|
||||||
|
|
||||||
substream = cxsc->capture_pcm_substream;
|
substream = cxsc->capture_pcm_substream;
|
||||||
|
|
|
@ -130,7 +130,7 @@ static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags))
|
if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags))
|
||||||
CX18_INFO("loaded %s firmware (%zd bytes)\n", fn, fw->size);
|
CX18_INFO("loaded %s firmware (%zu bytes)\n", fn, fw->size);
|
||||||
size = fw->size;
|
size = fw->size;
|
||||||
release_firmware(fw);
|
release_firmware(fw);
|
||||||
cx18_setup_page(cx, SCB_OFFSET);
|
cx18_setup_page(cx, SCB_OFFSET);
|
||||||
|
@ -202,7 +202,7 @@ static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx,
|
||||||
offset += seghdr.size;
|
offset += seghdr.size;
|
||||||
}
|
}
|
||||||
if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags))
|
if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags))
|
||||||
CX18_INFO("loaded %s firmware V%08x (%zd bytes)\n",
|
CX18_INFO("loaded %s firmware V%08x (%zu bytes)\n",
|
||||||
fn, apu_version, fw->size);
|
fn, apu_version, fw->size);
|
||||||
size = fw->size;
|
size = fw->size;
|
||||||
release_firmware(fw);
|
release_firmware(fw);
|
||||||
|
|
|
@ -364,7 +364,7 @@ int cx18_stream_alloc(struct cx18_stream *s)
|
||||||
((char __iomem *)cx->scb->cpu_mdl));
|
((char __iomem *)cx->scb->cpu_mdl));
|
||||||
|
|
||||||
CX18_ERR("Too many buffers, cannot fit in SCB area\n");
|
CX18_ERR("Too many buffers, cannot fit in SCB area\n");
|
||||||
CX18_ERR("Max buffers = %zd\n",
|
CX18_ERR("Max buffers = %zu\n",
|
||||||
bufsz / sizeof(struct cx18_mdl_ent));
|
bufsz / sizeof(struct cx18_mdl_ent));
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
|
@ -942,7 +942,7 @@ static int cx23885_load_firmware(struct cx23885_dev *dev)
|
||||||
|
|
||||||
if (firmware->size != CX23885_FIRM_IMAGE_SIZE) {
|
if (firmware->size != CX23885_FIRM_IMAGE_SIZE) {
|
||||||
printk(KERN_ERR "ERROR: Firmware size mismatch "
|
printk(KERN_ERR "ERROR: Firmware size mismatch "
|
||||||
"(have %zd, expected %d)\n",
|
"(have %zu, expected %d)\n",
|
||||||
firmware->size, CX23885_FIRM_IMAGE_SIZE);
|
firmware->size, CX23885_FIRM_IMAGE_SIZE);
|
||||||
release_firmware(firmware);
|
release_firmware(firmware);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -81,7 +81,7 @@ static void ivtv_alsa_announce_pcm_data(struct snd_ivtv_card *itvsc,
|
||||||
int period_elapsed = 0;
|
int period_elapsed = 0;
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
dprintk("ivtv alsa announce ptr=%p data=%p num_bytes=%zd\n", itvsc,
|
dprintk("ivtv alsa announce ptr=%p data=%p num_bytes=%zu\n", itvsc,
|
||||||
pcm_data, num_bytes);
|
pcm_data, num_bytes);
|
||||||
|
|
||||||
substream = itvsc->capture_pcm_substream;
|
substream = itvsc->capture_pcm_substream;
|
||||||
|
|
|
@ -65,7 +65,7 @@ retry:
|
||||||
the wrong file was sometimes loaded. So we check filesizes to
|
the wrong file was sometimes loaded. So we check filesizes to
|
||||||
see if at least the right-sized file was loaded. If not, then we
|
see if at least the right-sized file was loaded. If not, then we
|
||||||
retry. */
|
retry. */
|
||||||
IVTV_INFO("Retry: file loaded was not %s (expected size %ld, got %zd)\n", fn, size, fw->size);
|
IVTV_INFO("Retry: file loaded was not %s (expected size %ld, got %zu)\n", fn, size, fw->size);
|
||||||
release_firmware(fw);
|
release_firmware(fw);
|
||||||
retries--;
|
retries--;
|
||||||
goto retry;
|
goto retry;
|
||||||
|
@ -76,7 +76,7 @@ retry:
|
||||||
dst++;
|
dst++;
|
||||||
src++;
|
src++;
|
||||||
}
|
}
|
||||||
IVTV_INFO("Loaded %s firmware (%zd bytes)\n", fn, fw->size);
|
IVTV_INFO("Loaded %s firmware (%zu bytes)\n", fn, fw->size);
|
||||||
release_firmware(fw);
|
release_firmware(fw);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue