]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath10k: fix printf format string
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 4 Oct 2013 06:13:19 +0000 (08:13 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Oct 2013 12:13:53 +0000 (15:13 +0300)
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>
drivers/net/wireless/ath/ath10k/core.c

index 7b5dd09fab67e282b9865b5979c736d6efac9110..bf85d34e51c487fe7f51cc2a0042572e0f5b43d0 100644 (file)
@@ -402,7 +402,7 @@ static int ath10k_core_fetch_firmware_api_n(struct ath10k *ar, const char *name)
        magic_len = strlen(ATH10K_FIRMWARE_MAGIC) + 1;
 
        if (len < magic_len) {
-               ath10k_err("firmware image too small to contain magic: %d\n",
+               ath10k_err("firmware image too small to contain magic: %zu\n",
                           len);
                return -EINVAL;
        }
@@ -429,7 +429,7 @@ static int ath10k_core_fetch_firmware_api_n(struct ath10k *ar, const char *name)
                data += sizeof(*hdr);
 
                if (len < ie_len) {
-                       ath10k_err("Invalid length for FW IE %d (%d < %d)\n",
+                       ath10k_err("Invalid length for FW IE %d (%zu < %zu)\n",
                                   ie_id, len, ie_len);
                        return -EINVAL;
                }