diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-10-04 02:13:19 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-08 08:13:53 -0400 |
commit | fd9c4864a749ba1079fd73bf8394bc15d5c2c892 (patch) | |
tree | dd2b2d079cb88f3a68e64453a2a7b9dc39d0dd52 /drivers/net | |
parent | 3efcb3b40cc40091661eb376be175a6971616f6b (diff) |
ath10k: fix printf format string
size_t corresponds to %zu not %d. Compiler was
complaining about it.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 7b5dd09fab67..bf85d34e51c4 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c | |||
@@ -402,7 +402,7 @@ static int ath10k_core_fetch_firmware_api_n(struct ath10k *ar, const char *name) | |||
402 | magic_len = strlen(ATH10K_FIRMWARE_MAGIC) + 1; | 402 | magic_len = strlen(ATH10K_FIRMWARE_MAGIC) + 1; |
403 | 403 | ||
404 | if (len < magic_len) { | 404 | if (len < magic_len) { |
405 | ath10k_err("firmware image too small to contain magic: %d\n", | 405 | ath10k_err("firmware image too small to contain magic: %zu\n", |
406 | len); | 406 | len); |
407 | return -EINVAL; | 407 | return -EINVAL; |
408 | } | 408 | } |
@@ -429,7 +429,7 @@ static int ath10k_core_fetch_firmware_api_n(struct ath10k *ar, const char *name) | |||
429 | data += sizeof(*hdr); | 429 | data += sizeof(*hdr); |
430 | 430 | ||
431 | if (len < ie_len) { | 431 | if (len < ie_len) { |
432 | ath10k_err("Invalid length for FW IE %d (%d < %d)\n", | 432 | ath10k_err("Invalid length for FW IE %d (%zu < %zu)\n", |
433 | ie_id, len, ie_len); | 433 | ie_id, len, ie_len); |
434 | return -EINVAL; | 434 | return -EINVAL; |
435 | } | 435 | } |