Commit 668b5136 authored by Laurent Pinchart's avatar Laurent Pinchart

drm/sti: Use correct printk format specifiers for size_t

The correct format specifier for size_t is %zu. Using %d (or %u)
generates a warning on 64-bit platforms. Fix it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarPhilippe Cornu <philippe.cornu@foss.st.com>
parent 8b8a7d80
...@@ -927,12 +927,12 @@ static void sti_hqvdp_start_xp70(struct sti_hqvdp *hqvdp) ...@@ -927,12 +927,12 @@ static void sti_hqvdp_start_xp70(struct sti_hqvdp *hqvdp)
header = (struct fw_header *)firmware->data; header = (struct fw_header *)firmware->data;
if (firmware->size < sizeof(*header)) { if (firmware->size < sizeof(*header)) {
DRM_ERROR("Invalid firmware size (%d)\n", firmware->size); DRM_ERROR("Invalid firmware size (%zu)\n", firmware->size);
goto out; goto out;
} }
if ((sizeof(*header) + header->rd_size + header->wr_size + if ((sizeof(*header) + header->rd_size + header->wr_size +
header->pmem_size + header->dmem_size) != firmware->size) { header->pmem_size + header->dmem_size) != firmware->size) {
DRM_ERROR("Invalid fmw structure (%d+%d+%d+%d+%d != %d)\n", DRM_ERROR("Invalid fmw structure (%zu+%d+%d+%d+%d != %zu)\n",
sizeof(*header), header->rd_size, header->wr_size, sizeof(*header), header->rd_size, header->wr_size,
header->pmem_size, header->dmem_size, header->pmem_size, header->dmem_size,
firmware->size); firmware->size);
......
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