summaryrefslogtreecommitdiff
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-02-17 20:42:27 +0300
committerMark Brown <broonie@kernel.org>2016-02-17 22:16:53 +0300
commit7d62f51e74c62afc79f63c70ae48f1b8de57f5d4 (patch)
tree6b32a62427250245be762e2f433a262caa5130bf /drivers/spi/spi.c
parent08933418d71e52f60859319ef9fb4e6f754297c1 (diff)
downloadlinux-7d62f51e74c62afc79f63c70ae48f1b8de57f5d4.tar.xz
spi: core: Use %zu for printing 'size_t' type
Use %zu for printing 'size_t' type in order to fix the following build warning on ARM64: drivers/spi/spi.c: In function '__spi_split_transfer_maxsize': drivers/spi/spi.c:2278:2: warning: format '%i' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=] Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Martin Sperl <kernel@martin.sperl.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 9490273ed811..9ae199db171b 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2254,7 +2254,7 @@ static int __spi_split_transfer_maxsize(struct spi_master *master,
/* warn once about this fact that we are splitting a transfer */
dev_warn_once(&msg->spi->dev,
- "spi_transfer of length %i exceed max length of %i - needed to split transfers\n",
+ "spi_transfer of length %i exceed max length of %zu - needed to split transfers\n",
xfer->len, maxsize);
/* calculate how many we have to replace */