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

Commit eef6051c authored by Steve Cohen's avatar Steve Cohen
Browse files

drm/msm/sde: use correct format specifiers in prints



Fix format specifiers for some variables whose type has changed
in the upgrade to 4.14.  The rotation bitmask property used a custom
64-bit variable in 4.9 and was updated in 4.14 to use the 32-bit
variable provided by the DRM framework.  Also, iova has gone from a
32-bit value to 64-bit value.

Change-Id: Ie98db4322eb0275623508d8bbd8c865f1cbe684b
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent 98cd82ec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ static int validate_dma_cfg(struct sde_reg_dma_setup_ops_cfg *cfg)
	}

	if (cfg->dma_buf->iova & GUARD_BYTES || !cfg->dma_buf->vaddr) {
		DRM_ERROR("iova not aligned to %zx iova %x kva %pK",
		DRM_ERROR("iova not aligned to %zx iova %llx kva %pK",
				ADDR_ALIGN, cfg->dma_buf->iova,
				cfg->dma_buf->vaddr);
		return -EINVAL;
@@ -494,8 +494,8 @@ static int validate_kick_off_v1(struct sde_reg_dma_kickoff_cfg *cfg)
				(WRITE_TRIGGER);

	if (cfg->dma_buf->iova & GUARD_BYTES) {
		DRM_ERROR("Address is not aligned to %zx iova %x", ADDR_ALIGN,
				cfg->dma_buf->iova);
		DRM_ERROR("Address is not aligned to %zx iova %llx",
				ADDR_ALIGN, cfg->dma_buf->iova);
		return -EINVAL;
	}

+1 −1
Original line number Diff line number Diff line
@@ -1809,7 +1809,7 @@ static int sde_plane_rot_calc_cfg(struct drm_plane *plane,
		if (attached_out_rect.y1 != rstate->out_src_rect.y1 ||
			attached_out_rect.y2 != rstate->out_src_rect.y2) {
			SDE_ERROR(
				"plane%d.%u src:%dx%d+%d+%d rot:0x%llx fb:%d plane%d.%u src:%dx%d+%d+%d rot:0x%llx fb:%d mismatch\n",
				"plane%d.%u src:%dx%d+%d+%d rot:0x%x fb:%d plane%d.%u src:%dx%d+%d+%d rot:0x%x fb:%d mismatch\n",
					plane->base.id,
					rstate->sequence_id,
					state->src_w >> 16,