diff options
author | Bob Copeland <bob@hash.(none)> | 2009-05-01 08:20:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:15:00 -0400 |
commit | 8bce6121706dd82c266c3f527e592abfb3e164d1 (patch) | |
tree | a239552092199135dd5f566376a6e8b940634b18 /drivers/net/wireless/wl12xx | |
parent | 4e8e2c824027ed433be3c599294bf093a120ad9d (diff) |
wl12xx: correct printk format warnings
Fixes warnings:
drivers/net/wireless/wl12xx/main.c:87: warning: int format, different
type arg (arg 2)
drivers/net/wireless/wl12xx/main.c: In function `wl12xx_fetch_nvs':
drivers/net/wireless/wl12xx/main.c:125: warning: int format, different
type arg (arg 2)
drivers/net/wireless/wl12xx/wl1251.c: In function 'wl1251_upload_firmware':
drivers/net/wireless/wl12xx/wl1251.c:94: warning: int format, different
type arg (arg 2)
drivers/net/wireless/wl12xx/wl1251.c:141: warning: int format, different
type arg (arg 2)
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 744f4ce5993b..603d6114882e 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -84,7 +84,7 @@ static int wl12xx_fetch_firmware(struct wl12xx *wl) | |||
84 | } | 84 | } |
85 | 85 | ||
86 | if (fw->size % 4) { | 86 | if (fw->size % 4) { |
87 | wl12xx_error("firmware size is not multiple of 32 bits: %d", | 87 | wl12xx_error("firmware size is not multiple of 32 bits: %zu", |
88 | fw->size); | 88 | fw->size); |
89 | ret = -EILSEQ; | 89 | ret = -EILSEQ; |
90 | goto out; | 90 | goto out; |
@@ -122,7 +122,7 @@ static int wl12xx_fetch_nvs(struct wl12xx *wl) | |||
122 | } | 122 | } |
123 | 123 | ||
124 | if (fw->size % 4) { | 124 | if (fw->size % 4) { |
125 | wl12xx_error("nvs size is not multiple of 32 bits: %d", | 125 | wl12xx_error("nvs size is not multiple of 32 bits: %zu", |
126 | fw->size); | 126 | fw->size); |
127 | ret = -EILSEQ; | 127 | ret = -EILSEQ; |
128 | goto out; | 128 | goto out; |
diff --git a/drivers/net/wireless/wl12xx/wl1251.c b/drivers/net/wireless/wl12xx/wl1251.c index bd0decdcad23..ce1561a41fa4 100644 --- a/drivers/net/wireless/wl12xx/wl1251.c +++ b/drivers/net/wireless/wl12xx/wl1251.c | |||
@@ -91,7 +91,7 @@ static int wl1251_upload_firmware(struct wl12xx *wl) | |||
91 | fw_data_len = (wl->fw[4] << 24) | (wl->fw[5] << 16) | | 91 | fw_data_len = (wl->fw[4] << 24) | (wl->fw[5] << 16) | |
92 | (wl->fw[6] << 8) | (wl->fw[7]); | 92 | (wl->fw[6] << 8) | (wl->fw[7]); |
93 | 93 | ||
94 | wl12xx_debug(DEBUG_BOOT, "fw_data_len %d chunk_size %d", fw_data_len, | 94 | wl12xx_debug(DEBUG_BOOT, "fw_data_len %zu chunk_size %d", fw_data_len, |
95 | CHUNK_SIZE); | 95 | CHUNK_SIZE); |
96 | 96 | ||
97 | if ((fw_data_len % 4) != 0) { | 97 | if ((fw_data_len % 4) != 0) { |
@@ -138,7 +138,7 @@ static int wl1251_upload_firmware(struct wl12xx *wl) | |||
138 | /* 10.4 upload the last chunk */ | 138 | /* 10.4 upload the last chunk */ |
139 | addr = p_table[PART_DOWN].mem.start + chunk_num * CHUNK_SIZE; | 139 | addr = p_table[PART_DOWN].mem.start + chunk_num * CHUNK_SIZE; |
140 | p = wl->fw + FW_HDR_SIZE + chunk_num * CHUNK_SIZE; | 140 | p = wl->fw + FW_HDR_SIZE + chunk_num * CHUNK_SIZE; |
141 | wl12xx_debug(DEBUG_BOOT, "uploading fw last chunk (%d B) 0x%p to 0x%x", | 141 | wl12xx_debug(DEBUG_BOOT, "uploading fw last chunk (%zu B) 0x%p to 0x%x", |
142 | fw_data_len % CHUNK_SIZE, p, addr); | 142 | fw_data_len % CHUNK_SIZE, p, addr); |
143 | wl12xx_spi_mem_write(wl, addr, p, fw_data_len % CHUNK_SIZE); | 143 | wl12xx_spi_mem_write(wl, addr, p, fw_data_len % CHUNK_SIZE); |
144 | 144 | ||