Commit 41844076 authored by Luciano Coelho's avatar Luciano Coelho

wl18xx: use %zu for size_t arguments in printk calls

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: default avatarLuciano Coelho <coelho@ti.com>
parent 93fb19bb
...@@ -1023,8 +1023,8 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev) ...@@ -1023,8 +1023,8 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev)
} }
if (fw->size != WL18XX_CONF_SIZE) { if (fw->size != WL18XX_CONF_SIZE) {
wl1271_error("configuration binary file size is wrong, " wl1271_error("configuration binary file size is wrong, expected %zu got %zu",
"expected %d got %d", WL18XX_CONF_SIZE, fw->size); WL18XX_CONF_SIZE, fw->size);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment