summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2014-11-24 12:06:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-24 14:04:07 +0100
commit02334626876608866d62cf9433065a51be1545b5 (patch)
treef0aaaefd5b50a6cea557917d833db2caa098916a
parentb7782cc79f00f492d4743bf786409e6b77ef8ebc (diff)
downloadbarebox-02334626876608866d62cf9433065a51be1545b5.tar.gz
firmware: altera-serial: fix printf message
Fixes: .../altera_serial.c:118:2: warning: too many arguments for format Also sz is of type size_t, so use proper format specifier. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/firmware/altera_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c
index 232f1a6..c5ffbb6 100644
--- a/drivers/firmware/altera_serial.c
+++ b/drivers/firmware/altera_serial.c
@@ -113,7 +113,7 @@ static int altera_spi_write(struct firmware_handler *fh, const void *buf, size_t
u32 dummy;
int ret;
- dev_dbg(dev, "Start writing %d bytes.\n", __func__, sz);
+ dev_dbg(dev, "Start writing %zu bytes.\n", sz);
spi_message_init(&m);