diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-06-08 14:24:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-08 14:24:53 -0400 |
commit | 934b9d1ed71cca5a220ec13e3f76d6aebf5183da (patch) | |
tree | 97d51347257a776aea9fe4b3f6c46a75725fb82d /drivers/net | |
parent | bf34e68352ac9f8deae3e78c2825ac9fe373e73e (diff) |
wl18xx: avoid some -Wformat warnings
CC drivers/net/wireless/ti/wl18xx/main.o
drivers/net/wireless/ti/wl18xx/main.c: In function ‘wl18xx_conf_init’:
drivers/net/wireless/ti/wl18xx/main.c:1024:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
drivers/net/wireless/ti/wl18xx/main.c:1024:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c index b2ccff7d6188..ed9c3650e08a 100644 --- a/drivers/net/wireless/ti/wl18xx/main.c +++ b/drivers/net/wireless/ti/wl18xx/main.c | |||
@@ -1022,7 +1022,8 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev) | |||
1022 | 1022 | ||
1023 | if (fw->size != WL18XX_CONF_SIZE) { | 1023 | if (fw->size != WL18XX_CONF_SIZE) { |
1024 | wl1271_error("configuration binary file size is wrong, " | 1024 | wl1271_error("configuration binary file size is wrong, " |
1025 | "expected %d got %d", WL18XX_CONF_SIZE, fw->size); | 1025 | "expected %ld got %zd", |
1026 | WL18XX_CONF_SIZE, fw->size); | ||
1026 | ret = -EINVAL; | 1027 | ret = -EINVAL; |
1027 | goto out; | 1028 | goto out; |
1028 | } | 1029 | } |