From: Chris Park Date: Thu, 11 Jun 2015 03:42:23 +0000 (+0900) Subject: staging: wilc1000: fix warning while printing X-Git-Tag: v4.14-rc1~5163^2~237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b612a127e9d8119faec28534a033e06c174b6c1;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 6d854fd..a43dc9b 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;