Skip to contentSkip to conversation

spi: spi-ep93xx: Fix format specifier warning

PATCH Applied Emil Goode 2 participants 2 messages Jul 30, 2013 – Jul 31, 2013

Subsystems (2)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 2/3 spi: spi-ep93xx: Fix format specifier warning

This patch fixes the following sparse warning by changing the the format specifier for size_t to %zu.

drivers/spi/spi-ep93xx.c:512:3: warning:
format ‘%d’ expects argument of type ‘int’,
but argument 3 has type ‘size_t’ [-Wformat]

---
 drivers/spi/spi-ep93xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-ep93xx.c +1 -1
index 4c9a50c..31611f7 100644
@@ -509,7 +509,7 @@ ep93xx_spi_dma_prepare(struct ep93xx_spi *espi, enum dma_transfer_direction dir)
 	}
 
 	if (WARN_ON(len)) {
-		dev_warn(&espi->pdev->dev, "len = %d expected 0!", len);
+		dev_warn(&espi->pdev->dev, "len = %zu expected 0!", len);
 		return ERR_PTR(-EINVAL);
 	}
 
Signature · 1 line
1.7.10.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Emil Goode

This patch fixes the following sparse warning by changing the the format specifier for size_t to %zu.

Applied, thanks.