summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 93fb19b)
raw | patch | inline | side by side (parent: 93fb19b)
author | Luciano Coelho <coelho@ti.com> | |
Thu, 21 Jun 2012 12:33:10 +0000 (15:33 +0300) | ||
committer | Luciano Coelho <coelho@ti.com> | |
Thu, 21 Jun 2012 13:48:21 +0000 (16:48 +0300) |
After 934b9d1e (wl18xx: avoid some -Wformat warnings) there was still
a warning with (at least) ARM gcc version 4.4.1:
drivers/net/wireless/ti/wl18xx/main.c: In function 'wl18xx_conf_init':
drivers/net/wireless/ti/wl18xx/main.c:1026: warning: format '%ld' expects type 'long int', but argument 2 has type 'unsigned int'
Fix this by using %zu for the both formats, since the fw->size and the
macro (derived from sizeof()) are size_t.
Signed-off-by: Luciano Coelho <coelho@ti.com>
a warning with (at least) ARM gcc version 4.4.1:
drivers/net/wireless/ti/wl18xx/main.c: In function 'wl18xx_conf_init':
drivers/net/wireless/ti/wl18xx/main.c:1026: warning: format '%ld' expects type 'long int', but argument 2 has type 'unsigned int'
Fix this by using %zu for the both formats, since the fw->size and the
macro (derived from sizeof()) are size_t.
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl18xx/main.c | patch | blob | history |
index 2c0f51b449c42a869e23e123b3bdc0bcb225e466..271ff81da9223afb58e06e181278cb8d6cff3500 100644 (file)
}
if (fw->size != WL18XX_CONF_SIZE) {
- wl1271_error("configuration binary file size is wrong, "
- "expected %d got %d", WL18XX_CONF_SIZE, fw->size);
+ wl1271_error("configuration binary file size is wrong, expected %zu got %zu",
+ WL18XX_CONF_SIZE, fw->size);
ret = -EINVAL;
goto out;
}