diff options
author | Mark Brown <broonie@linaro.org> | 2014-08-01 13:09:48 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-08-04 04:15:26 -0400 |
commit | 6fc8ae787c589245ee3395630d2c428a1afab26c (patch) | |
tree | 408d5020fbb551ce5c83e94cba6632a9c3accd58 | |
parent | 31c1e5a1350ae8d1bc2018f5de8264266d9773e1 (diff) |
dma: pl08x: Use correct specifier for size_t values
When printing size_t values we should use the %zd or %zx format specifier
in order to ensure the value is displayed correctly and avoid warnings from
sparse.
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/amba-pl08x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 48ec81fe1eac..e34024b000a4 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -1040,7 +1040,7 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x, | |||
1040 | 1040 | ||
1041 | if (early_bytes) { | 1041 | if (early_bytes) { |
1042 | dev_vdbg(&pl08x->adev->dev, | 1042 | dev_vdbg(&pl08x->adev->dev, |
1043 | "%s byte width LLIs (remain 0x%08x)\n", | 1043 | "%s byte width LLIs (remain 0x%08zx)\n", |
1044 | __func__, bd.remainder); | 1044 | __func__, bd.remainder); |
1045 | prep_byte_width_lli(pl08x, &bd, &cctl, early_bytes, | 1045 | prep_byte_width_lli(pl08x, &bd, &cctl, early_bytes, |
1046 | num_llis++, &total_bytes); | 1046 | num_llis++, &total_bytes); |
@@ -1662,7 +1662,7 @@ static struct dma_async_tx_descriptor *pl08x_prep_dma_cyclic( | |||
1662 | dma_addr_t slave_addr; | 1662 | dma_addr_t slave_addr; |
1663 | 1663 | ||
1664 | dev_dbg(&pl08x->adev->dev, | 1664 | dev_dbg(&pl08x->adev->dev, |
1665 | "%s prepare cyclic transaction of %d/%d bytes %s %s\n", | 1665 | "%s prepare cyclic transaction of %zd/%zd bytes %s %s\n", |
1666 | __func__, period_len, buf_len, | 1666 | __func__, period_len, buf_len, |
1667 | direction == DMA_MEM_TO_DEV ? "to" : "from", | 1667 | direction == DMA_MEM_TO_DEV ? "to" : "from", |
1668 | plchan->name); | 1668 | plchan->name); |