git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a69ebc
)
staging: wilc1000: fix warning while printing
author
Chris Park
<chris.park@atmel.com>
Thu, 11 Jun 2015 03:42:23 +0000
(12:42 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 16:09:38 +0000
(09:09 -0700)
size_t should print using %zu, but here it was use %lu.
we were getting warning while printing.
Signed-off-by: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_spi.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/wilc_spi.c
b/drivers/staging/wilc1000/wilc_spi.c
index
6d854fd
..
a43dc9b
100644
(file)
--- a/
drivers/staging/wilc1000/wilc_spi.c
+++ b/
drivers/staging/wilc1000/wilc_spi.c
@@
-404,7
+404,7
@@
static int spi_cmd_complete(uint8_t cmd, uint32_t adr, uint8_t *b, uint32_t sz,
#undef NUM_DUMMY_BYTES
if (len2 > (sizeof(wb) / sizeof(wb[0]))) {
- PRINT_ER("[wilc spi]: spi buffer size too small (%d) (%
l
u)\n",
+ PRINT_ER("[wilc spi]: spi buffer size too small (%d) (%
z
u)\n",
len2, (sizeof(wb) / sizeof(wb[0])));
result = N_FAIL;
return result;