diff options
author | Chris Park <chris.park@atmel.com> | 2015-06-11 06:42:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-11 19:09:38 +0300 |
commit | 1b612a127e9d8119faec28534a033e06c174b6c1 (patch) | |
tree | 4b17b78ce402ca076425a1b34be6de550af3dbbf | |
parent | 8a69ebc277aa77e815fc85949aae6cc8ec04c7aa (diff) | |
download | linux-1b612a127e9d8119faec28534a033e06c174b6c1.tar.xz |
staging: wilc1000: fix warning while printing
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>
-rw-r--r-- | drivers/staging/wilc1000/wilc_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 6d854fd9101d..a43dc9b5f43a 100644 --- 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) (%lu)\n", + PRINT_ER("[wilc spi]: spi buffer size too small (%d) (%zu)\n", len2, (sizeof(wb) / sizeof(wb[0]))); result = N_FAIL; return result; |