* [PATCH 2/3] spi: spi-ep93xx: Fix format specifier warning
@ 2013-07-30 17:35 Emil Goode
2013-07-31 16:55 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Emil Goode @ 2013-07-30 17:35 UTC (permalink / raw)
To: kernel-janitors
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]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
---
drivers/spi/spi-ep93xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c
index 4c9a50c..31611f7 100644
--- a/drivers/spi/spi-ep93xx.c
+++ b/drivers/spi/spi-ep93xx.c
@@ -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);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] spi: spi-ep93xx: Fix format specifier warning
2013-07-30 17:35 [PATCH 2/3] spi: spi-ep93xx: Fix format specifier warning Emil Goode
@ 2013-07-31 16:55 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-07-31 16:55 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
On Tue, Jul 30, 2013 at 07:35:36PM +0200, Emil Goode wrote:
> This patch fixes the following sparse warning by changing the
> the format specifier for size_t to %zu.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-31 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 17:35 [PATCH 2/3] spi: spi-ep93xx: Fix format specifier warning Emil Goode
2013-07-31 16:55 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox