Commit 13fe0ec3 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Ulf Hansson

mmc: usdhi6rol0: fix compiler warnings

Fix a number of wrong print formats.
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 5c02c392
...@@ -357,7 +357,7 @@ static void *usdhi6_sg_map(struct usdhi6_host *host) ...@@ -357,7 +357,7 @@ static void *usdhi6_sg_map(struct usdhi6_host *host)
WARN(host->pg.page, "%p not properly unmapped!\n", host->pg.page); WARN(host->pg.page, "%p not properly unmapped!\n", host->pg.page);
if (WARN(sg_dma_len(sg) % data->blksz, if (WARN(sg_dma_len(sg) % data->blksz,
"SG size %zd isn't a multiple of block size %zd\n", "SG size %u isn't a multiple of block size %u\n",
sg_dma_len(sg), data->blksz)) sg_dma_len(sg), data->blksz))
return NULL; return NULL;
...@@ -459,7 +459,7 @@ static void usdhi6_sg_advance(struct usdhi6_host *host) ...@@ -459,7 +459,7 @@ static void usdhi6_sg_advance(struct usdhi6_host *host)
done = (host->page_idx << PAGE_SHIFT) + host->offset; done = (host->page_idx << PAGE_SHIFT) + host->offset;
total = host->sg->offset + sg_dma_len(host->sg); total = host->sg->offset + sg_dma_len(host->sg);
dev_dbg(mmc_dev(host->mmc), "%s(): %zu of %zu @ %u\n", __func__, dev_dbg(mmc_dev(host->mmc), "%s(): %zu of %zu @ %zu\n", __func__,
done, total, host->offset); done, total, host->offset);
if (done < total && host->offset) { if (done < total && host->offset) {
...@@ -489,7 +489,7 @@ static void usdhi6_sg_advance(struct usdhi6_host *host) ...@@ -489,7 +489,7 @@ static void usdhi6_sg_advance(struct usdhi6_host *host)
host->sg = next; host->sg = next;
if (WARN(next && sg_dma_len(next) % data->blksz, if (WARN(next && sg_dma_len(next) % data->blksz,
"SG size %zd isn't a multiple of block size %zd\n", "SG size %u isn't a multiple of block size %u\n",
sg_dma_len(next), data->blksz)) sg_dma_len(next), data->blksz))
data->error = -EINVAL; data->error = -EINVAL;
...@@ -896,7 +896,7 @@ static void usdhi6_request_done(struct usdhi6_host *host) ...@@ -896,7 +896,7 @@ static void usdhi6_request_done(struct usdhi6_host *host)
struct mmc_data *data = mrq->data; struct mmc_data *data = mrq->data;
if (WARN(host->pg.page || host->head_pg.page, if (WARN(host->pg.page || host->head_pg.page,
"Page %p or %p not unmapped: wait %u, CMD%d(%c) @ +0x%x %ux%u in SG%u!\n", "Page %p or %p not unmapped: wait %u, CMD%d(%c) @ +0x%zx %ux%u in SG%u!\n",
host->pg.page, host->head_pg.page, host->wait, mrq->cmd->opcode, host->pg.page, host->head_pg.page, host->wait, mrq->cmd->opcode,
data ? (data->flags & MMC_DATA_READ ? 'R' : 'W') : '-', data ? (data->flags & MMC_DATA_READ ? 'R' : 'W') : '-',
data ? host->offset : 0, data ? data->blocks : 0, data ? host->offset : 0, data ? data->blocks : 0,
...@@ -1666,7 +1666,7 @@ static void usdhi6_timeout_work(struct work_struct *work) ...@@ -1666,7 +1666,7 @@ static void usdhi6_timeout_work(struct work_struct *work)
case USDHI6_WAIT_FOR_READ: case USDHI6_WAIT_FOR_READ:
case USDHI6_WAIT_FOR_WRITE: case USDHI6_WAIT_FOR_WRITE:
dev_dbg(mmc_dev(host->mmc), dev_dbg(mmc_dev(host->mmc),
"%c: page #%u @ +0x%x %ux%u in SG%u. Current SG %u bytes @ %u\n", "%c: page #%u @ +0x%zx %ux%u in SG%u. Current SG %u bytes @ %u\n",
data->flags & MMC_DATA_READ ? 'R' : 'W', host->page_idx, data->flags & MMC_DATA_READ ? 'R' : 'W', host->page_idx,
host->offset, data->blocks, data->blksz, data->sg_len, host->offset, data->blocks, data->blksz, data->sg_len,
sg_dma_len(host->sg), host->sg->offset); sg_dma_len(host->sg), host->sg->offset);
......
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