diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-09-14 06:45:20 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-26 13:01:40 -0400 |
commit | abdad50d1d184e0c663b57015d9bbc11701207e7 (patch) | |
tree | 4c5adb5bfcb50fe3bd5be04f2eb7820d69372614 /drivers/dma/s3c24xx-dma.c | |
parent | e97adb49b415b3ff487e9fd0d759e843baf6f69e (diff) |
dmaengine: s3c24xx: use correct print specifiers for size_t
This driver warns:
drivers/dma/s3c24xx-dma.c: In function 's3c24xx_dma_prep_memcpy':
drivers/dma/s3c24xx-dma.c:826:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
drivers/dma/s3c24xx-dma.c:830:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
We should use %zu to print 'size_t' values.
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/s3c24xx-dma.c')
-rw-r--r-- | drivers/dma/s3c24xx-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index ce67075589f5..b4a7041c4f81 100644 --- a/drivers/dma/s3c24xx-dma.c +++ b/drivers/dma/s3c24xx-dma.c | |||
@@ -823,11 +823,11 @@ static struct dma_async_tx_descriptor *s3c24xx_dma_prep_memcpy( | |||
823 | struct s3c24xx_sg *dsg; | 823 | struct s3c24xx_sg *dsg; |
824 | int src_mod, dest_mod; | 824 | int src_mod, dest_mod; |
825 | 825 | ||
826 | dev_dbg(&s3cdma->pdev->dev, "prepare memcpy of %d bytes from %s\n", | 826 | dev_dbg(&s3cdma->pdev->dev, "prepare memcpy of %zu bytes from %s\n", |
827 | len, s3cchan->name); | 827 | len, s3cchan->name); |
828 | 828 | ||
829 | if ((len & S3C24XX_DCON_TC_MASK) != len) { | 829 | if ((len & S3C24XX_DCON_TC_MASK) != len) { |
830 | dev_err(&s3cdma->pdev->dev, "memcpy size %d to large\n", len); | 830 | dev_err(&s3cdma->pdev->dev, "memcpy size %zu to large\n", len); |
831 | return NULL; | 831 | return NULL; |
832 | } | 832 | } |
833 | 833 | ||